Merge pull request #3126 from mapa82/master

Monitoring: add setting acknowledge_expire_time
This commit is contained in:
lippserd 2018-01-17 12:18:00 +01:00 committed by GitHub
commit 375b140c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ baufrecht <baufrecht@users.noreply.github.com>
bradynathan <bradynathan@gmail.com>
cstegm <cstegm@users.noreply.github.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',