Skip to content
Snippets Groups Projects
Commit e4bd3c45 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #764 from grandoc/develop

fix :constant error
parents aeb3573d 3e8ebb95
No related branches found
No related tags found
No related merge requests found
...@@ -79,11 +79,11 @@ if ($action == 'specimen') ...@@ -79,11 +79,11 @@ if ($action == 'specimen')
// Set default model // Set default model
else if ($action == 'setdoc') else if ($action == 'setdoc')
{ {
if (dolibarr_set_const($db, "COMMANDE_ADDON_PDF",$value,'chaine',0,'',$conf->entity)) if (dolibarr_set_const($db, "DON_ADDON_MODEL",$value,'chaine',0,'',$conf->entity))
{ {
// La constante qui a ete lue en avant du nouveau set // La constante qui a ete lue en avant du nouveau set
// on passe donc par une variable pour avoir un affichage coherent // on passe donc par une variable pour avoir un affichage coherent
$conf->global->COMMANDE_ADDON_PDF = $value; $conf->global->DON_ADDON_MODEL = $value;
} }
// On active le modele // On active le modele
...@@ -105,7 +105,7 @@ else if ($action == 'del') ...@@ -105,7 +105,7 @@ else if ($action == 'del')
$ret = delDocumentModel($value, $type); $ret = delDocumentModel($value, $type);
if ($ret > 0) if ($ret > 0)
{ {
if ($conf->global->COMMANDE_ADDON_PDF == "$value") dolibarr_del_const($db, 'COMMANDE_ADDON_PDF',$conf->entity); if ($conf->global->DON_ADDON_MODEL == "$value") dolibarr_del_const($db, 'DON_ADDON_MODEL',$conf->entity);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment