FIX Category for suplements not saved

This commit is contained in:
Laurent Destailleur 2020-08-13 13:51:08 +02:00
parent f22398a9d3
commit 7ce1d36b59

View File

@ -44,9 +44,15 @@ if (GETPOST('action', 'alpha') == 'set')
{ {
$db->begin(); $db->begin();
dol_syslog("admin/cashdesk: level ".GETPOST('level', 'alpha')); dol_syslog("admin/bar");
if (!$res > 0) $error++; $suplement_category = GETPOST('TAKEPOS_SUPPLEMENTS_CATEGORY', 'alpha');
if ($suplement_category < 0) $suplement_category= 0;
$res = dolibarr_set_const($db, "TAKEPOS_SUPPLEMENTS_CATEGORY", $suplement_category, 'chaine', 0, '', $conf->entity);
if ($res <= 0) {
$error++;
}
if (!$error) if (!$error)
{ {