Make GET param of interval selection widget more generic

This commit is contained in:
Johannes Meyer 2014-03-24 16:57:35 +01:00
parent 18b5f715c5
commit 2e19baf503
1 changed files with 5 additions and 2 deletions

View File

@ -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,