Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
e4bd3c45
Commit
e4bd3c45
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/admin/dons.php
+3
-3
3 additions, 3 deletions
htdocs/admin/dons.php
with
3 additions
and
3 deletions
htdocs/admin/dons.php
+
3
−
3
View file @
e4bd3c45
...
...
@@ -79,11 +79,11 @@ if ($action == 'specimen')
// Set default model
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
// 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
...
...
@@ -105,7 +105,7 @@ else if ($action == 'del')
$ret
=
delDocumentModel
(
$value
,
$type
);
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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment