mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-18 00:55:03 +00:00
Display confirmation page before to delete all votes of one poll.
This commit is contained in:
parent
8d46ec6c33
commit
45716d15c1
2 changed files with 18 additions and 0 deletions
|
|
@ -128,6 +128,13 @@ if (!empty($_POST['delete_comment'])) {
|
|||
// Remove all votes
|
||||
// -------------------------------
|
||||
if (isset($_POST['remove_all_votes'])) {
|
||||
$smarty->assign('poll_id', $poll_id);
|
||||
$smarty->assign('admin_poll_id', $admin_poll_id);
|
||||
$smarty->assign('title', _('Poll') . ' - ' . $poll->title);
|
||||
$smarty->display('confirm/delete_votes.tpl');
|
||||
exit;
|
||||
}
|
||||
if (isset($_POST['confirm_remove_all_votes'])) {
|
||||
$adminPollService->cleanVotes($poll_id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue