diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php index 07912e8759c..a66b265cd98 100644 --- a/htdocs/admin/contract.php +++ b/htdocs/admin/contract.php @@ -35,6 +35,8 @@ if (!$user->admin) accessforbidden(); $action = GETPOST('action','alpha'); $value = GETPOST('value','alpha'); +$scandir = GETPOST('scandir','alpha'); +$type='contrat'; if (empty($conf->global->CONTRACT_ADDON)) { @@ -64,11 +66,6 @@ if ($action == 'updateMask') } } -if ($action == 'setmod') -{ - dolibarr_set_const($db, "CONTRACT_ADDON",$value,'chaine',0,'',$conf->entity); -} - else if ($action == 'specimen') // For contract { $modele= GETPOST('module','alpha');