diff options
author | dartcafe <github@dartcafe.de> | 2021-01-17 15:59:44 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-01-17 15:59:44 +0300 |
commit | 198f5e621e859b41eb0ae16f4175f6251ba8722c (patch) | |
tree | 307bf5047afb2467b6600ec194cd5fa200f592f4 | |
parent | bb479464d1647c1806cfdd9404b94f4bb3cba0f9 (diff) |
fixing order for sequencesv1.7.2-beta3
-rw-r--r-- | lib/Service/OptionService.php | 2 |
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) { |