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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
cff713ad
Commit
cff713ad
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: var not initialized
parent
53e1bb86
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/fichinter/card.php
+5
-6
5 additions, 6 deletions
htdocs/fichinter/card.php
with
5 additions
and
6 deletions
htdocs/fichinter/card.php
+
5
−
6
View file @
cff713ad
...
@@ -1160,11 +1160,12 @@ else if ($id > 0 || ! empty($ref))
...
@@ -1160,11 +1160,12 @@ else if ($id > 0 || ! empty($ref))
dol_fiche_head
(
$head
,
'card'
,
$langs
->
trans
(
"InterventionCard"
),
0
,
'intervention'
);
dol_fiche_head
(
$head
,
'card'
,
$langs
->
trans
(
"InterventionCard"
),
0
,
'intervention'
);
$formconfirm
=
''
;
// Confirmation de la suppression de la fiche d'intervention
// Confirmation de la suppression de la fiche d'intervention
if
(
$action
==
'delete'
)
if
(
$action
==
'delete'
)
{
{
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
,
$langs
->
trans
(
'DeleteIntervention'
),
$langs
->
trans
(
'ConfirmDeleteIntervention'
),
'confirm_delete'
,
''
,
0
,
1
);
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
,
$langs
->
trans
(
'DeleteIntervention'
),
$langs
->
trans
(
'ConfirmDeleteIntervention'
),
'confirm_delete'
,
''
,
0
,
1
);
}
}
// Confirmation validation
// Confirmation validation
...
@@ -1188,24 +1189,22 @@ else if ($id > 0 || ! empty($ref))
...
@@ -1188,24 +1189,22 @@ else if ($id > 0 || ! empty($ref))
$text
=
$langs
->
trans
(
'ConfirmValidateIntervention'
,
$numref
);
$text
=
$langs
->
trans
(
'ConfirmValidateIntervention'
,
$numref
);
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
,
$langs
->
trans
(
'ValidateIntervention'
),
$text
,
'confirm_validate'
,
''
,
0
,
1
);
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
,
$langs
->
trans
(
'ValidateIntervention'
),
$text
,
'confirm_validate'
,
''
,
0
,
1
);
}
}
// Confirmation de la validation de la fiche d'intervention
// Confirmation de la validation de la fiche d'intervention
if
(
$action
==
'modify'
)
if
(
$action
==
'modify'
)
{
{
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
,
$langs
->
trans
(
'ModifyIntervention'
),
$langs
->
trans
(
'ConfirmModifyIntervention'
),
'confirm_modify'
,
''
,
0
,
1
);
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
,
$langs
->
trans
(
'ModifyIntervention'
),
$langs
->
trans
(
'ConfirmModifyIntervention'
),
'confirm_modify'
,
''
,
0
,
1
);
}
}
// Confirmation de la suppression d'une ligne d'intervention
// Confirmation de la suppression d'une ligne d'intervention
if
(
$action
==
'ask_deleteline'
)
if
(
$action
==
'ask_deleteline'
)
{
{
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
.
'&line_id='
.
$lineid
,
$langs
->
trans
(
'DeleteInterventionLine'
),
$langs
->
trans
(
'ConfirmDeleteInterventionLine'
),
'confirm_deleteline'
,
''
,
0
,
1
);
$formconfirm
=
$form
->
formconfirm
(
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
.
'&line_id='
.
$lineid
,
$langs
->
trans
(
'DeleteInterventionLine'
),
$langs
->
trans
(
'ConfirmDeleteInterventionLine'
),
'confirm_deleteline'
,
''
,
0
,
1
);
}
}
if
(
!
$formconfirm
)
{
if
(
!
$formconfirm
)
{
$parameters
=
array
(
'lineid'
=>
$lineid
);
$parameters
=
array
(
'lineid'
=>
$lineid
);
$formconfirm
=
$hookmanager
->
executeHooks
(
'formConfirm'
,
$parameters
,
$object
,
$action
);
// Note that $action and $object may have been modified by hook
$formconfirm
=
$hookmanager
->
executeHooks
(
'formConfirm'
,
$parameters
,
$object
,
$action
);
// Note that $action and $object may have been modified by hook
}
}
...
...
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