Merge pull request #935 from vishal-singh-webkul/gli-1743

Added New hooks in AdminProductsController, ObjectModel and in some template files.
This commit is contained in:
Rohit Jain
2024-03-15 11:57:27 +05:30
committed by GitHub
6 changed files with 19 additions and 2 deletions

View File

@@ -211,7 +211,9 @@ abstract class ObjectModelCore implements Core_Foundation_Database_EntityInterfa
throw new PrestaShopException('Identifier or table format not valid for class '.$class_name);
}
ObjectModel::$loaded_classes[$class_name] = get_object_vars($this);
$objProperties = get_object_vars($this);
Hook::exec('actionObject'.$class_name.'PropertiesModifier', array('obj_properties' => &$objProperties));
ObjectModel::$loaded_classes[$class_name] = $objProperties;
} else {
foreach (ObjectModel::$loaded_classes[$class_name] as $key => $value) {
$this->{$key} = $value;