diff --git a/classes/ObjectModel.php b/classes/ObjectModel.php index d6cde40e2ee02..64b65f9b6c2f7 100644 --- a/classes/ObjectModel.php +++ b/classes/ObjectModel.php @@ -674,6 +674,10 @@ public function duplicateObject() $object_duplicated = new $definition['classname']((int) $object_id); $object_duplicated->duplicateShops((int) $this->id); + $hookParams = ['object' => $this, 'object_duplicated' => $object_duplicated]; + Hook::exec('actionObjectDuplicateAfter', $hookParams); + Hook::exec('actionObject' . $this->getFullyQualifiedName() . 'DuplicateAfter', $hookParams); + return $object_duplicated; }