diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index b3f1d7a5d51..1b7c67e40f9 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -262,11 +262,11 @@ if ($action == 'setforcedate') } } -if ($action == 'set_FAC_AUTO_FILLJS') +if ($action == 'set_INVOICE_AUTO_FILLJS') { - $freetext = GETPOST('FAC_AUTO_FILLJS'); // No alpha here, we want exact string + $freetext = GETPOST('INVOICE_AUTO_FILLJS'); // No alpha here, we want exact string - $res = dolibarr_set_const($db, "FAC_AUTO_FILLJS",$freetext,'chaine',0,'',$conf->entity); + $res = dolibarr_set_const($db, "INVOICE_AUTO_FILLJS",$freetext,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; @@ -754,11 +754,11 @@ print ''; $var=! $var; print '