Fixes for the class => className conversion, and addSave/editSave for new assets.

This commit is contained in:
Colin Kuskie 2011-12-12 10:32:48 -08:00
parent d3836cd3ad
commit ba345e221b
4 changed files with 5 additions and 5 deletions

View file

@ -269,9 +269,9 @@ override canEdit => sub {
my $userId = shift || $self->session->user->userId;
my $form = $self->session->form;
if ( $form->get('func') eq "editSave"
if ( $form->get('func') eq "addSave"
&& $form->get('assetId') eq "new"
&& $form->get( 'class' )->isa( 'WebGUI::Asset::MatrixListing' ) ) {
&& $form->get( 'className','className' )->isa( 'WebGUI::Asset::MatrixListing' ) ) {
return $self->canAddMatrixListing();
}
return super();