[-] BO: fixed lots of UI bugs in CMS:
- no more id_category (doesn't exists, it's id_cms_category) - change category position now redirects in parent category (not at root category) - change category status now redirects in parent category (not at root category) - delete multiples category now redirects in parent category (not at root category) - add form new category now auto select parent category (not root category) - add a new category now redirects in parent category (not at root category) - delete multiple categories now redirects in parent category (not at root category) - now execute parent::postProcess() only if none action found (duplicate postProcess was done) - now redirects to CMS form if found errors (not at root category) - fixed unexists $object variable (was $cms) for saveAndStay - delete multiple cms content now redirects in parent category (not at root category) - change cms content position now redirects in parent category (not at root category) - change cms content status now redirects in parent category (not at root category)
This commit is contained in:
@@ -113,6 +113,7 @@ class AdminCmsContentControllerCore extends AdminController
|
||||
if (Tools::isSubmit('submitDelcms')
|
||||
|| Tools::isSubmit('previewSubmitAddcmsAndPreview')
|
||||
|| Tools::isSubmit('submitAddcms')
|
||||
|| Tools::isSubmit('submitBulkdeletecms')
|
||||
|| Tools::isSubmit('deletecms')
|
||||
|| Tools::isSubmit('viewcms')
|
||||
|| (Tools::isSubmit('statuscms') && Tools::isSubmit('id_cms'))
|
||||
@@ -126,6 +127,8 @@ class AdminCmsContentControllerCore extends AdminController
|
||||
|| (Tools::isSubmit('statuscms_category') && Tools::isSubmit('id_cms_category'))
|
||||
|| (Tools::isSubmit('position') && Tools::isSubmit('id_cms_category_to_move')))
|
||||
$this->admin_cms_categories->postProcess();
|
||||
else
|
||||
parent::postProcess();
|
||||
|
||||
if (((Tools::isSubmit('submitAddcms_category') || Tools::isSubmit('submitAddcms_categoryAndStay')) && count($this->admin_cms_categories->errors))
|
||||
|| Tools::isSubmit('updatecms_category')
|
||||
@@ -146,8 +149,6 @@ class AdminCmsContentControllerCore extends AdminController
|
||||
|
||||
if (isset($this->admin_cms_categories->errors))
|
||||
$this->errors = array_merge($this->errors, $this->admin_cms_categories->errors);
|
||||
|
||||
parent::postProcess();
|
||||
}
|
||||
|
||||
public function setMedia()
|
||||
|
||||
Reference in New Issue
Block a user