diff --git a/htdocs/core/tpl/freeproductline_edit.tpl.php b/htdocs/core/tpl/freeproductline_edit.tpl.php index b3052d42f21..5933e1eebce 100644 --- a/htdocs/core/tpl/freeproductline_edit.tpl.php +++ b/htdocs/core/tpl/freeproductline_edit.tpl.php @@ -40,8 +40,8 @@ hooks)) { - foreach($this->hooks as $module) { + if (! empty($this->hooks['objectcard'])) { + foreach($this->hooks['objectcard'] as $module) { $module->formEditProductOptions($this,$line->fk_parent_line); echo '
'; } diff --git a/htdocs/core/tpl/predefinedproductline_edit.tpl.php b/htdocs/core/tpl/predefinedproductline_edit.tpl.php index c7a8092d58c..a75e2b65203 100644 --- a/htdocs/core/tpl/predefinedproductline_edit.tpl.php +++ b/htdocs/core/tpl/predefinedproductline_edit.tpl.php @@ -48,8 +48,8 @@ echo ' - '.nl2br($line->product_label); echo '
'; - if (! empty($this->hooks)) { - foreach($this->hooks as $module) { + if (! empty($this->hooks['objectcard'])) { + foreach($this->hooks['objectcard'] as $module) { $module->formEditProductOptions($this,$line->fk_parent_line); echo '
'; }