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

@@ -121,9 +121,9 @@ class ContentImage extends BaseContentImage implements BreadcrumbInterface, File
*
* @return string the URL to redirect to after update from the back-office
*/
public function getRedirectionUrl($objectId)
public function getRedirectionUrl()
{
return '/admin/content/update/' . $objectId . '?current_tab=image';
return '/admin/content/update/' . $this->getContentId();
}
/**