fix bugs revealed by Test::Class tests

This commit is contained in:
Doug Bell 2011-06-02 19:44:06 -05:00
parent 1de9a12365
commit 664e7686c6
16 changed files with 93 additions and 75 deletions

View file

@ -628,25 +628,6 @@ sub view {
return $out;
}
#-------------------------------------------------------------------
=head2 www_edit
Display the edit form to the user. Manually handles the template for displaying
the inline view of the asset.
=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);
my $f = $self->getEditForm;
return $self->getAdminConsole->render($f->print,$self->addEditLabel);
}
#-------------------------------------------------------------------
=head2 www_view