Merge pull request #11439 from atm-quentin/FIX_empty_product_use_units
FIX empty product_use_units in product configuration
This commit is contained in:
commit
5fde7da183
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user