Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-04-23 10:40:18 +02:00
parent 5631167ca7
commit fe93733872
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || (
$max_expiry_time = $pollService->maxExpiryDate();
// The poll format is other (A) if we are in this file
if (!isset($_SESSION['form'])) {
if (!isset($_SESSION['form']->format)) {
$_SESSION['form']->format = 'A';
}
// If we come from another format, we need to clear choices

View File

@ -45,7 +45,7 @@ $min_expiry_time = $pollService->minExpiryDate();
$max_expiry_time = $pollService->maxExpiryDate();
// The poll format is DATE if we are in this file
if (!isset($_SESSION['form'])) {
if (!isset($_SESSION['form']->format)) {
$_SESSION['form']->format = 'D';
}
// If we come from another format, we need to clear choices