Skip to content
Snippets Groups Projects
Commit 089039d6 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: possibility to have more hooks in the same page

New: add left search block hook and extra left block hook
parent 363d5080
Branches
Tags
No related merge requests found
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
<a name="<?php echo $line->id; ?>"></a> <a name="<?php echo $line->id; ?>"></a>
<?php <?php
if (! empty($this->hooks)) { if (! empty($this->hooks['objectcard'])) {
foreach($this->hooks as $module) { foreach($this->hooks['objectcard'] as $module) {
$module->formEditProductOptions($this,$line->fk_parent_line); $module->formEditProductOptions($this,$line->fk_parent_line);
echo '<br>'; echo '<br>';
} }
......
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
echo ' - '.nl2br($line->product_label); echo ' - '.nl2br($line->product_label);
echo '<br>'; echo '<br>';
if (! empty($this->hooks)) { if (! empty($this->hooks['objectcard'])) {
foreach($this->hooks as $module) { foreach($this->hooks['objectcard'] as $module) {
$module->formEditProductOptions($this,$line->fk_parent_line); $module->formEditProductOptions($this,$line->fk_parent_line);
echo '<br>'; echo '<br>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment