Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-01-17 15:59:44 +0300
committerdartcafe <github@dartcafe.de>2021-01-17 15:59:44 +0300
commit198f5e621e859b41eb0ae16f4175f6251ba8722c (patch)
tree307bf5047afb2467b6600ec194cd5fa200f592f4
parentbb479464d1647c1806cfdd9404b94f4bb3cba0f9 (diff)
fixing order for sequencesv1.7.2-beta3
-rw-r--r--lib/Service/OptionService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/OptionService.php b/lib/Service/OptionService.php
index b46f4b37..4e09440a 100644
--- a/lib/Service/OptionService.php
+++ b/lib/Service/OptionService.php
@@ -189,8 +189,8 @@ class OptionService {
$clonedOption->setPollId($this->option->getPollId());
$clonedOption->setConfirmed(0);
$clonedOption->setTimestamp($baseDate->modify($step . ' ' . $unit)->getTimestamp());
+ $clonedOption->setOrder($clonedOption->getTimestamp());
$clonedOption->setPollOptionText($baseDate->format('c'));
- $clonedOption->setOrder($baseDate->getTimestamp());
try {
$this->optionMapper->insert($clonedOption);
} catch (UniqueConstraintViolationException $e) {