FIX: Call of printOriginObjectLine hook

This commit is contained in:
kamel 2022-04-14 14:14:07 +02:00
parent 6a7212a48d
commit 8a9be6705d

View File

@ -4824,11 +4824,9 @@ abstract class CommonObject
if (!empty($this->lines)) {
foreach ($this->lines as $line) {
if (is_object($hookmanager) && (($line->product_type == 9 && !empty($line->special_code)) || !empty($line->fk_parent_line))) {
if (empty($line->fk_parent_line)) {
$parameters = array('line'=>$line, 'i'=>$i);
$action = '';
$hookmanager->executeHooks('printOriginObjectLine', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
}
$parameters = array('line' => $line, 'i' => $i);
$action = '';
$hookmanager->executeHooks('printOriginObjectLine', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
} else {
$this->printOriginLine($line, '', $restrictlist, '/core/tpl', $selectedLines);
}