Monitoring: add setting acknowledge_expire_time
Signed-off-by: Alexander A. Klimov <alexander.klimov@icinga.com>
This commit is contained in:
parent
7fd9f23f6c
commit
9b81492e8b
1
AUTHORS
1
AUTHORS
|
@ -68,6 +68,7 @@ ayoubabid <ayoubabid@users.noreply.github.com>
|
||||||
baufrecht <baufrecht@users.noreply.github.com>
|
baufrecht <baufrecht@users.noreply.github.com>
|
||||||
bradynathan <bradynathan@gmail.com>
|
bradynathan <bradynathan@gmail.com>
|
||||||
hailthemelody@rm-laptop04 <hailthemelody@rm-laptop04>
|
hailthemelody@rm-laptop04 <hailthemelody@rm-laptop04>
|
||||||
|
mapa82 <maik.paetzold@akra.de>
|
||||||
mbaschnitzi <mbaschnitzi@users.noreply.github.com>
|
mbaschnitzi <mbaschnitzi@users.noreply.github.com>
|
||||||
rbelinsky <rbelinsky@dalet.com>
|
rbelinsky <rbelinsky@dalet.com>
|
||||||
realitygaps <github@gapsinreality.com>
|
realitygaps <github@gapsinreality.com>
|
||||||
|
|
|
@ -88,7 +88,7 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
|
||||||
$expire = isset($formData['expire']) ? $formData['expire'] : $acknowledgeExpire;
|
$expire = isset($formData['expire']) ? $formData['expire'] : $acknowledgeExpire;
|
||||||
if ($expire) {
|
if ($expire) {
|
||||||
$expireTime = new DateTime();
|
$expireTime = new DateTime();
|
||||||
$expireTime->add(new DateInterval('PT1H'));
|
$expireTime->add(new DateInterval($config->get('settings', 'acknowledge_expire_time', 'PT1H')));
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'dateTimePicker',
|
'dateTimePicker',
|
||||||
'expire_time',
|
'expire_time',
|
||||||
|
|
Loading…
Reference in New Issue