Ajout de commentaire sur un sondage nommé.
This commit is contained in:
parent
7523294508
commit
a42f232196
@ -52,9 +52,7 @@ $securityService = new SecurityService();
|
||||
|
||||
if (!empty($_POST['poll'])) {
|
||||
$poll_id = filter_input(INPUT_POST, 'poll', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => POLL_REGEX]]);
|
||||
if (strlen($poll_id) === 16) {
|
||||
$poll = $pollService->findById($poll_id);
|
||||
}
|
||||
$poll = $pollService->findById($poll_id);
|
||||
}
|
||||
|
||||
if (!$poll) {
|
||||
|
@ -74,6 +74,7 @@ $(document).ready(function () {
|
||||
newMessage
|
||||
.find('.contents')
|
||||
.text(data.message.message);
|
||||
newMessage.removeClass('hidden');
|
||||
var commentsAlert = $('#comments_alerts');
|
||||
commentsAlert
|
||||
.empty()
|
||||
|
Loading…
Reference in New Issue
Block a user