Allow it to return permission denied errors. Consider making this return an error object or exception later.

This commit is contained in:
Colin Kuskie 2011-12-01 15:22:55 -08:00
parent 17e69a4d80
commit 59d12c5c05

View file

@ -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" );