diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index c71029769f2..090d1d796eb 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -1076,7 +1076,7 @@ class FormOther
{
if (empty($user->conf->$confuserzone) || $box->fk_user == $user->id) $boxidactivatedforuser[$box->id] = $box->id; // We keep only boxes to show for user
}
-
+//var_dump($boxidactivatedforuser);
// Define selectboxlist
$arrayboxtoactivatelabel = array();
if (!empty($user->conf->$confuserzone))
@@ -1209,6 +1209,7 @@ class FormOther
if (!empty($conf->global->MAIN_BOXES_MAXLINES)) $box_max_lines = $conf->global->MAIN_BOXES_MAXLINES;
$ii = 0;
+
foreach ($boxactivated as $key => $box)
{
if ((!empty($user->conf->$confuserzone) && $box->fk_user == 0) || (empty($user->conf->$confuserzone) && $box->fk_user != 0)) continue;
@@ -1220,6 +1221,7 @@ class FormOther
//print 'box_order '.$boxactivated[$ii]->box_order.'
';
// Show box
$box->loadBox($box_max_lines);
+ //var_dump($key,$box);
$boxlista .= $box->showBox(null, null, 1);
}
}
diff --git a/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php b/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php
index e356792ed42..46fe523600d 100644
--- a/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php
+++ b/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php
@@ -206,6 +206,6 @@ class mymodulewidget1 extends ModeleBoxes
{
// You may make your own code here…
// … or use the parent's class function using the provided head and contents templates
- parent::showBox($this->info_box_head, $this->info_box_contents);
+ return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
}
}