FIX: Call of printOriginObjectLine hook
This commit is contained in:
parent
6a7212a48d
commit
8a9be6705d
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user