From 20ee97fb9aaf69e3c10497905a6f689677717e7b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Feb 2023 20:14:17 +0100 Subject: [PATCH] Debug v17 --- htdocs/societe/list.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index f96f9bb4478..de58e557d8e 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -945,12 +945,12 @@ if ($user->hasRight("societe", "creer")) { if ($user->hasRight("societe", "creer")) { $arrayofmassactions['presetcommercial'] = img_picto('', 'user', 'class="pictofixedwidth"').$langs->trans("AllocateCommercial"); } -if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'preenable', 'preclose'))) { - $arrayofmassactions = array(); -} if ($user->hasRight('societe', 'supprimer')) { $arrayofmassactions['predelete'] = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Delete"); } +if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'preenable', 'preclose'))) { + $arrayofmassactions = array(); +} $massactionbutton = $form->selectMassAction('', $arrayofmassactions); $typefilter = '';