From 4c5d9e844114797112780f624de8f45023f1e320 Mon Sep 17 00:00:00 2001 From: Grand Philippe Date: Mon, 2 Sep 2013 10:17:45 +0200 Subject: [PATCH] fix : activate a model --- htdocs/admin/contract.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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');