mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-23 02:14:06 +00:00
Fixed expiry date edition
This commit is contained in:
parent
d3db76ccd7
commit
fa5014de32
3 changed files with 10 additions and 4 deletions
|
|
@ -122,8 +122,7 @@ if (isset($_POST['update_poll_info'])) {
|
|||
break;
|
||||
}
|
||||
} elseif ($field == 'expiration_date') {
|
||||
$expiration_date = filter_input(INPUT_POST, 'expiration_date', FILTER_VALIDATE_REGEXP,
|
||||
['options' => ['regexp' => '#^[0-9]{4}-[0-9]{2}-[0-9]{2}$#']]);
|
||||
$expiration_date = $inputService->filterDate($_POST['expiration_date']);
|
||||
if ($expiration_date) {
|
||||
$poll->end_date = $expiration_date;
|
||||
$updated = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue