mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-23 02:14:06 +00:00
bug/test-name-on-vote-edit
This commit is contained in:
parent
cb03c5c054
commit
f921d383a9
4 changed files with 26 additions and 2 deletions
|
|
@ -223,6 +223,8 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
|
|||
} else {
|
||||
$message = new Message('danger', __('Error', 'Update vote failed'));
|
||||
}
|
||||
} catch (AlreadyExistsException $aee) {
|
||||
$message = new Message('danger', __('Error', 'The name you\'ve chosen already exist in this poll!'));
|
||||
} catch (ConcurrentEditionException $cee) {
|
||||
$message = new Message('danger', __('Error', 'Poll has been updated before you vote'));
|
||||
} catch (ConcurrentVoteException $cve) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue