[-] BO : fix #PSCFV-2377 - missing JS files when saving product with errors
This commit is contained in:
@@ -150,9 +150,6 @@ abstract class ControllerCore
|
|||||||
$this->init();
|
$this->init();
|
||||||
if ($this->checkAccess())
|
if ($this->checkAccess())
|
||||||
{
|
{
|
||||||
if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
|
|
||||||
$this->setMedia();
|
|
||||||
|
|
||||||
// postProcess handles ajaxProcess
|
// postProcess handles ajaxProcess
|
||||||
$this->postProcess();
|
$this->postProcess();
|
||||||
|
|
||||||
@@ -160,7 +157,10 @@ abstract class ControllerCore
|
|||||||
$this->redirect();
|
$this->redirect();
|
||||||
|
|
||||||
if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
|
if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
|
||||||
|
{
|
||||||
|
$this->setMedia();
|
||||||
$this->initHeader();
|
$this->initHeader();
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->viewAccess())
|
if ($this->viewAccess())
|
||||||
$this->initContent();
|
$this->initContent();
|
||||||
|
|||||||
@@ -1413,7 +1413,10 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$this->checkProduct();
|
$this->checkProduct();
|
||||||
|
|
||||||
if (!empty($this->errors))
|
if (!empty($this->errors))
|
||||||
|
{
|
||||||
|
$this->display = 'add';
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$this->object = new $this->className();
|
$this->object = new $this->className();
|
||||||
$this->_removeTaxFromEcotax();
|
$this->_removeTaxFromEcotax();
|
||||||
@@ -1503,7 +1506,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
|
|
||||||
if (!empty($this->errors))
|
if (!empty($this->errors))
|
||||||
{
|
{
|
||||||
//$this->display = 'edit';
|
$this->display = 'edit';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3942,7 +3945,6 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
_PS_JS_DIR_.'jquery/plugins/treeview-categories/jquery.treeview-categories.css',
|
_PS_JS_DIR_.'jquery/plugins/treeview-categories/jquery.treeview-categories.css',
|
||||||
_PS_JS_DIR_.'jquery/plugins/timepicker/jquery-ui-timepicker-addon.css',
|
_PS_JS_DIR_.'jquery/plugins/timepicker/jquery-ui-timepicker-addon.css',
|
||||||
));
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user