FIX product_use_units was set to 0 each time a conf in block other was set
This commit is contained in:
parent
ef27e32f53
commit
8cdb251ca5
@ -245,12 +245,12 @@ if ($action == 'set')
|
|||||||
if (! $res > 0) $error++;
|
if (! $res > 0) $error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'other')
|
//if ($action == 'other')
|
||||||
{
|
//{
|
||||||
$value = GETPOST('activate_units', 'alpha');
|
// $value = GETPOST('activate_units', 'alpha');
|
||||||
$res = dolibarr_set_const($db, "PRODUCT_USE_UNITS", $value, 'chaine', 0, '', $conf->entity);
|
// $res = dolibarr_set_const($db, "PRODUCT_USE_UNITS", $value, 'chaine', 0, '', $conf->entity);
|
||||||
if (! $res > 0) $error++;
|
// if (! $res > 0) $error++;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if ($action)
|
if ($action)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user