Fixes for the class => className conversion, and addSave/editSave for new assets.
This commit is contained in:
parent
d3836cd3ad
commit
ba345e221b
4 changed files with 5 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue