Allow it to return permission denied errors. Consider making this return an error object or exception later.
This commit is contained in:
parent
17e69a4d80
commit
59d12c5c05
1 changed files with 3 additions and 0 deletions
|
|
@ -2812,6 +2812,9 @@ sub www_add {
|
|||
|
||||
my $template = eval { $newAsset->getEditTemplate };
|
||||
return $@ if $@;
|
||||
if (! blessed $template ) {
|
||||
return $template;
|
||||
}
|
||||
if ( $template->getForm("form") ) {
|
||||
$template->getForm("form")->action( $self->getUrl );
|
||||
$template->getForm("form")->addField( "Hidden", name => "func", value => "addSave" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue