Skip to content

Commit

Permalink
FIX product_use_units was set to 0 each time a conf in block other wa…
Browse files Browse the repository at this point in the history
…s set
  • Loading branch information
atm-quentin committed Jul 2, 2019
1 parent ef27e32 commit 8cdb251
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htdocs/product/admin/product.php
Expand Up @@ -245,12 +245,12 @@
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)
{
Expand Down

0 comments on commit 8cdb251

Please sign in to comment.