FIX product_use_units was set to 0 each time a conf in block other was set

This commit is contained in:
atm-quentin 2019-07-02 10:13:26 +02:00
parent ef27e32f53
commit 8cdb251ca5

View File

@ -245,12 +245,12 @@ if ($action == 'set')
if (! $res > 0) $error++;
}
if ($action == 'other')
{
$value = GETPOST('activate_units', 'alpha');
$res = dolibarr_set_const($db, "PRODUCT_USE_UNITS", $value, 'chaine', 0, '', $conf->entity);
if (! $res > 0) $error++;
}
//if ($action == 'other')
//{
// $value = GETPOST('activate_units', 'alpha');
// $res = dolibarr_set_const($db, "PRODUCT_USE_UNITS", $value, 'chaine', 0, '', $conf->entity);
// if (! $res > 0) $error++;
//}
if ($action)
{