-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

@ -3,6 +3,9 @@
- fixed #9285: modifing template prevents edit of syncontent
- fixed #8886: Search button in Asset manager
- fixed #9154: WebGUI Shop - Checkout Caching Problem
- fixed a bug where clicking the apply button when func=add would return the
edit screen of the parent asset rather than that of the new asset. (Martin
Kamerbeek / Oqapi).
7.6.7
- fixed #9263: Thingy possibleValues processing, and List type autodetection.

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