diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 99a1de84162..70187b3a6a8 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -2013,7 +2013,7 @@ if ($resql) {
print '
';
// Action column
- if (!empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
+ if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
print '
';
if ($massactionbutton || $massaction) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
$selected = 0;
@@ -2646,7 +2646,7 @@ if ($resql) {
}
// Action column
- if (empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
+ if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
print '
';
if ($massactionbutton || $massaction) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
$selected = 0;
diff --git a/htdocs/product/composition/card.php b/htdocs/product/composition/card.php
index 25892ab98c8..f7ea2478da7 100644
--- a/htdocs/product/composition/card.php
+++ b/htdocs/product/composition/card.php
@@ -326,7 +326,7 @@ if ($id > 0 || !empty($ref)) {
print '
';
print '
'.$langs->trans('ParentProducts').'
';
print '
'.$langs->trans('Label').'
';
- print '
'.$langs->trans('Qty').'
';
+ print '
'.$langs->trans('Qty').'
';
print '';
if (count($prodsfather) > 0) {
foreach ($prodsfather as $value) {
@@ -342,7 +342,7 @@ if ($id > 0 || !empty($ref)) {
print '
';
+ if (!empty($productCombinations) || $massactionbutton || $massaction) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
+ $selected = 0;
+ if (in_array($prodstatic->id, $arrayofselected)) {
+ $selected = 1;
+ }
+ print '';
+ }
+ print '
';
- if (!empty($productCombinations) || $massactionbutton || $massaction) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
- $selected = 0;
- if (in_array($prodstatic->id, $arrayofselected)) {
- $selected = 1;
+
+ // Action column
+ if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
+ print '
';
+ if (!empty($productCombinations) || $massactionbutton || $massaction) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
+ $selected = 0;
+ if (in_array($prodstatic->id, $arrayofselected)) {
+ $selected = 1;
+ }
+ print '';
}
- print '';
+ print '