Fixed: fatal error on admin products and admin normal products caused when the id in url in not unsigned int
This commit is contained in:
@@ -2818,7 +2818,7 @@ class AdminNormalProductsControllerCore extends AdminController
|
||||
}
|
||||
|
||||
// let's calculate this once for all
|
||||
if (!Validate::isLoadedObject($this->object) && Tools::getValue('id_product')) {
|
||||
if (!Validate::isLoadedObject($this->object) && Validate::isUnsignedId(Tools::getValue('id_product'))) {
|
||||
$this->errors[] = 'Unable to load object';
|
||||
} else {
|
||||
$this->_displayDraftWarning($this->object->active);
|
||||
|
||||
Reference in New Issue
Block a user