Merge pull request #1205 from grandoc/develop
Fix: Contracts activate a model
This commit is contained in:
commit
58c501fe51
@ -35,6 +35,8 @@ if (!$user->admin) accessforbidden();
|
|||||||
|
|
||||||
$action = GETPOST('action','alpha');
|
$action = GETPOST('action','alpha');
|
||||||
$value = GETPOST('value','alpha');
|
$value = GETPOST('value','alpha');
|
||||||
|
$scandir = GETPOST('scandir','alpha');
|
||||||
|
$type='contrat';
|
||||||
|
|
||||||
if (empty($conf->global->CONTRACT_ADDON))
|
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
|
else if ($action == 'specimen') // For contract
|
||||||
{
|
{
|
||||||
$modele= GETPOST('module','alpha');
|
$modele= GETPOST('module','alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user