diff --git a/htdocs/admin/societe.php b/htdocs/admin/societe.php index df6f8256d13..bde1f3f3e00 100644 --- a/htdocs/admin/societe.php +++ b/htdocs/admin/societe.php @@ -63,9 +63,9 @@ if ($_GET["action"] == 'setcodecompta') } } -if ($_POST["action"] == 'usesearchtoselectcompany') +if ($_POST["action"] == 'COMPANY_USE_SEARCH_TO_SELECT') { - if (dolibarr_set_const($db, "COMPANY_USE_SEARCH_TO_SELECT", $_POST["activate_usesearchtoselectcompany"],'chaine',0,'',$conf->entity)) + if (dolibarr_set_const($db, "COMPANY_USE_SEARCH_TO_SELECT", $_POST["activate_COMPANY_USE_SEARCH_TO_SELECT"],'chaine',0,'',$conf->entity)) { Header("Location: ".$_SERVER["PHP_SELF"]); exit; @@ -452,7 +452,7 @@ print '