From 14ba83f81f4f24ccdfa786955c8ee35ff68cc1c9 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Thu, 11 Mar 2021 14:20:50 +0100 Subject: [PATCH] try to fix sticker --- htdocs/product/admin/product_lot.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/htdocs/product/admin/product_lot.php b/htdocs/product/admin/product_lot.php index 4b3c254c1aa..13b47e56afd 100644 --- a/htdocs/product/admin/product_lot.php +++ b/htdocs/product/admin/product_lot.php @@ -55,7 +55,6 @@ if ($action == 'updateMaskLot') { } else { setEventMessages($langs->trans("Error"), null, 'errors'); } - } elseif ($action == 'updateMaskSN') { $maskconstbatch = GETPOST('maskconstSN', 'alpha'); $maskbatch = GETPOST('maskSN', 'alpha'); @@ -69,10 +68,8 @@ if ($action == 'updateMaskLot') { } else { setEventMessages($langs->trans("Error"), null, 'errors'); } - } elseif ($action == 'setmodlot') { dolibarr_set_const($db, "LOT_ADDON", $value, 'chaine', 0, '', $conf->entity); - } elseif ($action == 'setmodsn') { dolibarr_set_const($db, "SN_ADDON", $value, 'chaine', 0, '', $conf->entity); } @@ -111,15 +108,13 @@ print ''."\n"; clearstatcache(); -foreach ($dirmodels as $reldir) -{ +foreach ($dirmodels as $reldir) { $dir = dol_buildpath($reldir."core/modules/product_batch/"); if (is_dir($dir)) { $handle = opendir($dir); if (is_resource($handle)) { - while (($file = readdir($handle)) !== false) - { + while (($file = readdir($handle)) !== false) { if (substr($file, 0, 8) == 'mod_lot_' && substr($file, dol_strlen($file) - 3, 3) == 'php') { $file = substr($file, 0, dol_strlen($file) - 4); @@ -205,15 +200,13 @@ print ''."\n"; clearstatcache(); -foreach ($dirmodels as $reldir) -{ +foreach ($dirmodels as $reldir) { $dir = dol_buildpath($reldir."core/modules/product_batch/"); if (is_dir($dir)) { $handle = opendir($dir); if (is_resource($handle)) { - while (($file = readdir($handle)) !== false) - { + while (($file = readdir($handle)) !== false) { if (substr($file, 0, 7) == 'mod_sn_' && substr($file, dol_strlen($file) - 3, 3) == 'php') { $file = substr($file, 0, dol_strlen($file) - 4);