diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:21:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:21:35 +0000 |
commit | cddcdba3c9be7e32454d0c54efd1d60e7cef7518 (patch) | |
tree | 485d573becbe08ff71189381739483cdb57cf949 /application/forms/TimeRangePicker/CustomForm.php | |
parent | Adding upstream version 1.2.2. (diff) | |
download | icingaweb2-module-graphite-upstream.tar.xz icingaweb2-module-graphite-upstream.zip |
Adding upstream version 1.2.4.upstream/1.2.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/forms/TimeRangePicker/CustomForm.php')
-rw-r--r-- | application/forms/TimeRangePicker/CustomForm.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/application/forms/TimeRangePicker/CustomForm.php b/application/forms/TimeRangePicker/CustomForm.php index 89b5833..7b37022 100644 --- a/application/forms/TimeRangePicker/CustomForm.php +++ b/application/forms/TimeRangePicker/CustomForm.php @@ -100,8 +100,8 @@ class CustomForm extends Form if ($start > $end) { $absoluteRangeParameters = TimeRangePickerTools::getAbsoluteRangeParameters(); $this->getRedirectUrl()->getParams() - ->set($absoluteRangeParameters['start'], $end) - ->set($absoluteRangeParameters['end'], $start); + ->set($absoluteRangeParameters['start'], (string) $end) + ->set($absoluteRangeParameters['end'], (string) $start); } $this->getRedirectUrl()->remove(TimeRangePickerTools::getRelativeRangeParameter()); @@ -126,6 +126,9 @@ class CustomForm extends Form ]); } + assert(isset($elementDecorators), '$elementDecorators not initialized in the loop'); + assert(isset($element), '$element not initialized in the loop'); + $decorators = []; foreach ($elementDecorators as $key => $decorator) { if ($key === 'Zend_Form_Decorator_ViewHelper') { |