Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
jdev
jdev-boarding
Commits
ed4f7ed3
Commit
ed4f7ed3
authored
Jun 18, 2020
by
Sandrine Sabatié
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ssabatie' into 'develop'
Replace DashboardParticipantEditFormAction.php See merge request
!26
parents
94776fb8
dbf09ef8
Pipeline
#2662
passed with stages
in 1 minute and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
app/src/Action/DashboardParticipantEditFormAction.php
app/src/Action/DashboardParticipantEditFormAction.php
+0
-19
No files found.
app/src/Action/DashboardParticipantEditFormAction.php
View file @
ed4f7ed3
...
...
@@ -188,31 +188,12 @@ final class DashboardParticipantEditFormAction
$participant
->
setEmploi
(
$parsedBody
[
'emploi'
]);
$participant
->
setUnite
(
$parsedBody
[
'unite'
]);
$participant
->
setRegion
(
$parsedBody
[
'region'
]);
$participant
->
setRegimeAlimentaire
(
$parsedBody
[
'regime_alimentaire'
]);
// Si le participant est une personne à mobilité reduite
if
(
isset
(
$parsedBody
[
'mobilite_reduite'
])
&&
$parsedBody
[
'mobilite_reduite'
]
==
'on'
)
{
$participant
->
setMobiliteReduite
(
true
);
}
else
{
$participant
->
setMobiliteReduite
(
false
);
}
// Si le participant demande un code wi-fi
if
(
isset
(
$parsedBody
[
'acces_wifi'
])
&&
$parsedBody
[
'acces_wifi'
]
==
'on'
)
{
$participant
->
setCodeWifi
(
true
);
}
else
{
$participant
->
setCodeWifi
(
false
);
}
// Si le participant veut être inscrit à la mailing list
if
(
isset
(
$parsedBody
[
'mailing_list'
])
&&
$parsedBody
[
'mailing_list'
]
==
'on'
)
{
$participant
->
setMailingList
(
true
);
}
else
{
$participant
->
setMailingList
(
false
);
}
// Si le participant veut se rendre à l'événement social
if
(
isset
(
$parsedBody
[
'evenement_social'
])
&&
$parsedBody
[
'evenement_social'
]
==
'on'
)
{
$participant
->
setEvenementSocial
(
true
);
}
else
{
$participant
->
setEvenementSocial
(
false
);
}
$this
->
deleteAllContributions
(
$participant
);
$this
->
createContributions
(
$parsedBody
,
$participant
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment