[-] BO : #PSCFV-2569 - Fix CMS category duplication

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15713 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte committed 2012-05-28 14:48:09 +00:00
1 parent cbf6cd352e
commit 526d2cac1a
1 file changed
+2 -1
@@ -86,6 +86,7 @@ class AdminCmsCategoriesControllerCore extends AdminController
$this->action = 'save'; $this->action = 'save';
if ($id_cms_category = (int)Tools::getValue('id_cms_category')) if ($id_cms_category = (int)Tools::getValue('id_cms_category'))
{ {
$this->id_object = $id_cms_category;
if (!CMSCategory::checkBeforeMove($id_cms_category, (int)Tools::getValue('id_parent'))) if (!CMSCategory::checkBeforeMove($id_cms_category, (int)Tools::getValue('id_parent')))
{ {
$this->errors[] = Tools::displayError('CMS Category cannot be moved here'); $this->errors[] = Tools::displayError('CMS Category cannot be moved here');
@@ -193,7 +194,7 @@ class AdminCmsCategoriesControllerCore extends AdminController
else else
$this->errors[] = Tools::displayError('You do not have permission to delete here.'); $this->errors[] = Tools::displayError('You do not have permission to delete here.');
} }
parent::postProcess(true); parent::postProcess();
} }
public function renderForm() public function renderForm()