Monitoring: add setting acknowledge_expire_time

Signed-off-by: Alexander A. Klimov <alexander.klimov@icinga.com>
This commit is contained in:
mapa82 2017-11-21 15:10:49 +01:00 committed by Alexander A. Klimov
parent 7fd9f23f6c
commit 9b81492e8b
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ ayoubabid <ayoubabid@users.noreply.github.com>
baufrecht <baufrecht@users.noreply.github.com>
bradynathan <bradynathan@gmail.com>
hailthemelody@rm-laptop04 <hailthemelody@rm-laptop04>
mapa82 <maik.paetzold@akra.de>
mbaschnitzi <mbaschnitzi@users.noreply.github.com>
rbelinsky <rbelinsky@dalet.com>
realitygaps <github@gapsinreality.com>

View File

@ -88,7 +88,7 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
$expire = isset($formData['expire']) ? $formData['expire'] : $acknowledgeExpire;
if ($expire) {
$expireTime = new DateTime();
$expireTime->add(new DateInterval('PT1H'));
$expireTime->add(new DateInterval($config->get('settings', 'acknowledge_expire_time', 'PT1H')));
$this->addElement(
'dateTimePicker',
'expire_time',