-Fixed a bug where the clicking apply button when func=add would return the edit screen of the parent asset rather

than that of the newly added asset.
This commit is contained in:
Martin Kamerbeek 2008-12-22 18:44:11 +00:00
parent c76d533c31
commit d502f4b5de
2 changed files with 9 additions and 1 deletions

View file

@ -2628,7 +2628,12 @@ sub www_editSave {
# Handle "saveAndReturn" button
if ( $self->session->form->process( "saveAndReturn" ) ne "" ) {
return $self->www_edit;
if ($isNewAsset) {
return $object->www_edit;
}
else {
return $self->www_edit;
}
}
# Handle "proceed" form parameter