diff --git a/htdocs/core/tpl/freeproductline_edit.tpl.php b/htdocs/core/tpl/freeproductline_edit.tpl.php
index b3052d42f214993c3d26edccd73231d91d35ccd5..5933e1eebce90d229b76f4879bd09ed56dffac81 100644
--- a/htdocs/core/tpl/freeproductline_edit.tpl.php
+++ b/htdocs/core/tpl/freeproductline_edit.tpl.php
@@ -40,8 +40,8 @@
 	<a name="<?php echo $line->id; ?>"></a>
 	
 	<?php
-	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 '<br>';
 		}
diff --git a/htdocs/core/tpl/predefinedproductline_edit.tpl.php b/htdocs/core/tpl/predefinedproductline_edit.tpl.php
index c7a8092d58ce1e5c99c7f4b2947329d47b18b41b..a75e2b6520392e2d68957645d01d5ce8c80732a5 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 '<br>';
 
-	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 '<br>';
 		}