Fix: compatibility with external module and hook

This commit is contained in:
Regis Houssin 2011-04-06 07:50:59 +00:00
parent 2757038f1f
commit 0fc3396973

View File

@ -1438,9 +1438,9 @@ class CommonObject
{
$var=!$var;
if ($line->product_type == 9 && ! empty($line->special_code))
if (($line->product_type == 9 && ! empty($line->special_code)) || ! empty($line->fk_parent_line))
{
$this->hooks[$line->special_code]->printObjectLine($this,$line,$num,$i);
if (empty($line->fk_parent_line)) $this->hooks[$line->special_code]->printObjectLine($this,$line,$num,$i);
}
else
{