From 1eb4d7625333d653a735b3cf6c1efb6571635491 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Jan 2022 13:15:32 +0100 Subject: [PATCH] Clean code --- htdocs/admin/commande.php | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php index 1e977fb48df..24a45bb413a 100644 --- a/htdocs/admin/commande.php +++ b/htdocs/admin/commande.php @@ -158,18 +158,6 @@ if ($action == 'updateMask') { $error++; } - if (!$error) { - setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); - } else { - setEventMessages($langs->trans("Error"), null, 'errors'); - } -} elseif ($action == "setshippableiconinlist") { - // Activate Set Shippable Icon In List - $setshippableiconinlist = GETPOST('value', 'int'); - $res = dolibarr_set_const($db, "SHIPPABLE_ORDER_ICON_IN_LIST", $setshippableiconinlist, 'yesno', 0, '', $conf->entity); - if (!($res > 0)) { - $error++; - } if (!$error) { setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); } else { @@ -646,25 +634,6 @@ print '\n"; print ''; -// Shippable Icon in List -/* Kept as hidden feature for the moment, result seems bugged. -Where is definition of "shippable" according to all different STOCK_CALCULATE_... options ? - -print ''; -print ''.$langs->trans("ShippableOrderIconInList").''; -print ' '; -print ''; -if (!empty($conf->global->SHIPPABLE_ORDER_ICON_IN_LIST)) { - print ''; - print img_picto($langs->trans("Activated"),'switch_on'); -} else { - print ''; - print img_picto($langs->trans("Disabled"),'switch_off'); -} -print ''; -print ''; -*/ - /* // Seems to be not so used. So kept hidden for the moment to avoid dangerous options inflation. // Ask for payment bank during order