[-] BO: call actionProductUpdate hook on status change
This commit is contained in:
1 parent
a94666c4fb
commit
70628845b7
1 file changed
+7
-1
@@ -1785,7 +1785,13 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
if (($error = $this->object->validateFieldsLang(false, true)) !== true)
|
if (($error = $this->object->validateFieldsLang(false, true)) !== true)
|
||||||
$this->errors[] = $error;
|
$this->errors[] = $error;
|
||||||
|
|
||||||
return !count($this->errors) ? parent::processStatus() : false;
|
if (count($this->errors))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
$res = parent::processStatus();
|
||||||
|
Hook::exec('actionProductUpdate', array('product' => $this->object));
|
||||||
|
|
||||||
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function processUpdate()
|
public function processUpdate()
|
||||||
|
|||||||
Reference in new issue
Block a user