default www_edit now returns template. add errors to edit template
This commit is contained in:
parent
ecce246e1c
commit
db9753eb01
6 changed files with 22 additions and 80 deletions
|
|
@ -542,23 +542,6 @@ around indexContent => sub {
|
|||
};
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_edit ( )
|
||||
|
||||
Override the method from Asset.pm to change the title of the screen.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_edit {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless $self->canEdit;
|
||||
return $self->session->privilege->locked() unless $self->canEditIfLocked;
|
||||
my $i18n = WebGUI::International->new($self->session,"Asset_RichEdit");
|
||||
return $self->getAdminConsole->render($self->getEditForm->print,$i18n->get("rich edit edit config"));
|
||||
}
|
||||
|
||||
|
||||
__PACKAGE__->meta->make_immutable;
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue