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
0bda82e7
Commit
0bda82e7
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge pull request #1524 from FHenry/develop
Fix choix date in survey
parents
5d30220b
0e616162
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/opensurvey/wizard/choix_date.php
+4
-4
4 additions, 4 deletions
htdocs/opensurvey/wizard/choix_date.php
with
4 additions
and
4 deletions
htdocs/opensurvey/wizard/choix_date.php
+
4
−
4
View file @
0bda82e7
...
...
@@ -229,7 +229,7 @@ if ((!issetAndNoEmpty('choixjourajout')) && !issetAndNoEmpty('choixjourretrait')
}
//mise a jour des valeurs de session si mois avant
if
(
issetAndNoEmpty
(
'moisavant'
))
{
if
(
issetAndNoEmpty
(
'moisavant_x'
)
||
issetAndNoEmpty
(
'moisavant'
))
{
if
(
$_SESSION
[
"mois"
]
==
1
)
{
$_SESSION
[
"mois"
]
=
12
;
$_SESSION
[
"annee"
]
=
$_SESSION
[
"annee"
]
-
1
;
...
...
@@ -251,7 +251,7 @@ if (issetAndNoEmpty('moisavant')) {
}
//mise a jour des valeurs de session si mois apres
if
(
issetAndNoEmpty
(
'moisapres'
))
{
if
(
issetAndNoEmpty
(
'moisapres_x'
)
||
issetAndNoEmpty
(
'moisapres'
))
{
if
(
$_SESSION
[
"mois"
]
==
12
)
{
$_SESSION
[
"mois"
]
=
1
;
$_SESSION
[
"annee"
]
+=
1
;
...
...
@@ -274,7 +274,7 @@ if (issetAndNoEmpty('moisapres')) {
}
//mise a jour des valeurs de session si annee avant
if
(
issetAndNoEmpty
(
'anneeavant'
))
{
if
(
issetAndNoEmpty
(
'anneeavant_x'
)
||
issetAndNoEmpty
(
'anneeavant'
))
{
$_SESSION
[
"annee"
]
-=
1
;
//On sauvegarde les heures deja entrées
...
...
@@ -291,7 +291,7 @@ if (issetAndNoEmpty('anneeavant')) {
}
//mise a jour des valeurs de session si annee apres
if
(
issetAndNoEmpty
(
'anneeapres'
))
{
if
(
issetAndNoEmpty
(
'anneeapres_x'
)
||
issetAndNoEmpty
(
'anneeapres'
))
{
$_SESSION
[
"annee"
]
+=
1
;
//On sauvegarde les heures deja entrées
...
...
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