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:
vishalsingh.qlo325
2024-07-15 15:12:24 +05:30
parent 778e097cff
commit d7f764c331
2 changed files with 2 additions and 2 deletions

View File

@@ -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);