Fixed "with the close or save and close button you get an exception"

This commit is contained in:
Franck Allimant
2014-07-07 22:44:39 +02:00
parent 77a94d06a0
commit 6ebf2c7e42
14 changed files with 39 additions and 34 deletions

View File

@@ -120,9 +120,9 @@ class FolderDocument extends BaseFolderDocument implements BreadcrumbInterface,
* @param int $objectId the ID of the parent object
* @return string the URL to redirect to after update from the back-office
*/
public function getRedirectionUrl($objectId)
public function getRedirectionUrl()
{
return '/admin/folder/update/' . $objectId . '?current_tab=image';
return '/admin/folder/update/' . $this->getFolderId();
}
/**