fix : activate a model

This commit is contained in:
Grand Philippe 2013-09-02 10:17:45 +02:00
parent 4fe1843800
commit 4c5d9e8441

View File

@ -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');