Merge pull request #1205 from grandoc/develop

Fix: Contracts activate a model
This commit is contained in:
Juanjo Menent 2013-09-02 01:35:24 -07:00
commit 58c501fe51

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