From 2e19baf5039ae5c3cf4b58c234d40ccbffada00a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 24 Mar 2014 16:57:35 +0100 Subject: [PATCH] Make GET param of interval selection widget more generic --- .../library/Monitoring/Web/Widget/TimelineIntervalBox.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Web/Widget/TimelineIntervalBox.php b/modules/monitoring/library/Monitoring/Web/Widget/TimelineIntervalBox.php index 354c05658..307fffba8 100644 --- a/modules/monitoring/library/Monitoring/Web/Widget/TimelineIntervalBox.php +++ b/modules/monitoring/library/Monitoring/Web/Widget/TimelineIntervalBox.php @@ -8,6 +8,9 @@ use Icinga\Web\Form; use Icinga\Web\Request; use Icinga\Web\Widget\AbstractWidget; +/** + * @todo Might be better if this is a generic selection widget. + */ class TimelineIntervalBox extends AbstractWidget { /** @@ -67,7 +70,7 @@ class TimelineIntervalBox extends AbstractWidget } if ($request) { - return $request->getParam('timelineInterval'); + return $request->getParam('interval'); } } @@ -85,7 +88,7 @@ class TimelineIntervalBox extends AbstractWidget $form->setName($this->name); $form->addElement( 'select', - 'timelineInterval', + 'interval', array( 'label' => 'Timeline Interval', 'multiOptions' => $this->values,