Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
latoilescoute-dev
scoodle
Commits
daf7fcd3
Commit
daf7fcd3
authored
Oct 14, 2016
by
Antonin
Browse files
Bug sur l'éditabilité des sondage.
parent
7a1033b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/classes/Framadate/Repositories/PollRepository.php
View file @
daf7fcd3
...
...
@@ -16,7 +16,7 @@ class PollRepository extends AbstractRepository {
(id, admin_id, title, description, admin_name, admin_mail, end_date, format, editable, receiveNewVotes, receiveNewComments, hidden, password_hash, results_publicly_visible)
VALUES (?,?,?,?,?,?,FROM_UNIXTIME(?),?,?,?,?,?,?,?)'
;
$prepared
=
$this
->
prepare
(
$sql
);
$prepared
->
execute
(
array
(
$poll_id
,
$admin_poll_id
,
$form
->
title
,
$form
->
description
,
$form
->
admin_name
,
$form
->
admin_mail
,
$form
->
end_date
,
$form
->
format
,
$form
->
editable
?
1
:
0
,
$form
->
receiveNewVotes
?
1
:
0
,
$form
->
receiveNewComments
?
1
:
0
,
$form
->
hidden
?
1
:
0
,
$form
->
password_hash
,
$form
->
results_publicly_visible
?
1
:
0
));
$prepared
->
execute
(
array
(
$poll_id
,
$admin_poll_id
,
$form
->
title
,
$form
->
description
,
$form
->
admin_name
,
$form
->
admin_mail
,
$form
->
end_date
,
$form
->
format
,
(
$form
->
editable
>=
0
&&
$form
->
editable
<=
2
)
?
$form
->
editable
:
0
,
$form
->
receiveNewVotes
?
1
:
0
,
$form
->
receiveNewComments
?
1
:
0
,
$form
->
hidden
?
1
:
0
,
$form
->
password_hash
,
$form
->
results_publicly_visible
?
1
:
0
));
}
function
findById
(
$poll_id
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment