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

@@ -113,9 +113,9 @@ class BrandDocument extends BaseBrandDocument implements BreadcrumbInterface, Fi
*
* @return string the URL to redirect to after update from the back-office
*/
public function getRedirectionUrl($objectId)
public function getRedirectionUrl()
{
return '/admin/brand/update/' . $objectId . '?current_tab=document';
return '/admin/brand/update/' . $this->getBrandId();
}
/**

View File

@@ -113,9 +113,9 @@ class BrandImage extends BaseBrandImage implements FileModelInterface, Breadcrum
*
* @return string the URL to redirect to after update from the back-office
*/
public function getRedirectionUrl($objectId)
public function getRedirectionUrl()
{
return '/admin/brand/update/' . $objectId . '?current_tab=image';
return '/admin/brand/update/' . $this->getBrandId();
}
/**

View File

@@ -123,9 +123,9 @@ class CategoryDocument extends BaseCategoryDocument implements BreadcrumbInterfa
*
* @return string the URL to redirect to after update from the back-office
*/
public function getRedirectionUrl($objectId)
public function getRedirectionUrl()
{
return '/admin/categories/update?category_id=' . $objectId . '?current_tab=document';
return '/admin/categories/update?category_id=' . $this->getCategoryId();
}
/**

View File

@@ -123,9 +123,9 @@ class CategoryImage extends BaseCategoryImage implements BreadcrumbInterface, Fi
*
* @return string the URL to redirect to after update from the back-office
*/
public function getRedirectionUrl($objectId)
public function getRedirectionUrl()
{
return '/admin/categories/update?category_id=' . $objectId . '?current_tab=image';
return '/admin/categories/update?category_id=' . $this->getCategoryId();
}
/**

View File

@@ -123,9 +123,9 @@ class ContentDocument extends BaseContentDocument implements BreadcrumbInterface
*
* @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=document';
return '/admin/content/update/' . $this->getContentId();
}
/**

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();
}
/**

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();
}
/**

View File

@@ -120,9 +120,9 @@ class FolderImage extends BaseFolderImage implements BreadcrumbInterface, FileMo
* @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();
}
/**

View File

@@ -123,9 +123,9 @@ class ProductDocument extends BaseProductDocument implements BreadcrumbInterface
*
* @return string the URL to redirect to after update from the back-office
*/
public function getRedirectionUrl($objectId)
public function getRedirectionUrl()
{
return '/admin/products/update?product_id=' . $objectId . '?current_tab=document';
return '/admin/products/update?product_id=' . $this->getProductId();
}
/**

View File

@@ -122,9 +122,9 @@ class ProductImage extends BaseProductImage 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/products/update?product_id=' . $objectId . '?current_tab=image';
return '/admin/products/update?product_id=' . $this->getProductId();
}
/**