This commit is contained in:
Marcos García de La Fuente 2014-05-03 17:10:47 +02:00
parent 077dfab7a6
commit 6eae44b766

View File

@ -59,12 +59,15 @@ if ($action == 'update')
{
$error = 0;
$compta_mode = GETPOST('compta_mode','alpha');
if (in_array($compta_mode, array(
$compta_modes = array(
'RECETTES-DEPENSES',
'CREANCES-DETTES'
))) {
);
$compta_mode = GETPOST('compta_mode','alpha');
if (in_array($compta_mode,$compta_modes)) {
if (!dolibarr_set_const($db, 'COMPTA_MODE', $compta_mode, 'chaine', 0, '', $conf->entity)) {
$error++;