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

This commit is contained in:
mDeflotte committed 2012-05-28 14:48:09 +00:00
1 parent 6b55ed3f33
commit fc1131132c
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()