mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Make GET param of interval selection widget more generic
This commit is contained in:
parent
18b5f715c5
commit
2e19baf503
@ -8,6 +8,9 @@ use Icinga\Web\Form;
|
|||||||
use Icinga\Web\Request;
|
use Icinga\Web\Request;
|
||||||
use Icinga\Web\Widget\AbstractWidget;
|
use Icinga\Web\Widget\AbstractWidget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @todo Might be better if this is a generic selection widget.
|
||||||
|
*/
|
||||||
class TimelineIntervalBox extends AbstractWidget
|
class TimelineIntervalBox extends AbstractWidget
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -67,7 +70,7 @@ class TimelineIntervalBox extends AbstractWidget
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($request) {
|
if ($request) {
|
||||||
return $request->getParam('timelineInterval');
|
return $request->getParam('interval');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,7 +88,7 @@ class TimelineIntervalBox extends AbstractWidget
|
|||||||
$form->setName($this->name);
|
$form->setName($this->name);
|
||||||
$form->addElement(
|
$form->addElement(
|
||||||
'select',
|
'select',
|
||||||
'timelineInterval',
|
'interval',
|
||||||
array(
|
array(
|
||||||
'label' => 'Timeline Interval',
|
'label' => 'Timeline Interval',
|
||||||
'multiOptions' => $this->values,
|
'multiOptions' => $this->values,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user