Support setting a default comment for acknowledgements

This commit is contained in:
marianrh 2025-05-03 09:26:44 +02:00 committed by Johannes Meyer
parent eafb6c95b7
commit b16cf68c86
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,8 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
. ' the host or service that is having problems. Make sure you enter a brief description of' . ' the host or service that is having problems. Make sure you enter a brief description of'
. ' what you are doing.' . ' what you are doing.'
), ),
'attribs' => array('class' => 'autofocus') 'attribs' => array('class' => 'autofocus'),
'value' => $config->get('settings', 'acknowledge_comment_text')
) )
), ),
array( array(

View File

@ -21,6 +21,7 @@ by this module.
Option | Description Option | Description
----------------------------------|----------------------------------------------- ----------------------------------|-----------------------------------------------
acknowledge_comment_text | **Optional.** Set default text for "Comment" in Acknowledgement dialog by default.
acknowledge_expire | **Optional.** Check "Use Expire Time" in Acknowledgement dialog by default. Defaults to **0 (false)**. acknowledge_expire | **Optional.** Check "Use Expire Time" in Acknowledgement dialog by default. Defaults to **0 (false)**.
acknowledge_expire_time | **Optional.** Set default value for "Expire Time" in Acknowledgement dialog, its calculated as now + this setting. Format is a [PHP Dateinterval](http://www.php.net/manual/en/dateinterval.construct.php). Defaults to **1 hour (PT1H)**. acknowledge_expire_time | **Optional.** Set default value for "Expire Time" in Acknowledgement dialog, its calculated as now + this setting. Format is a [PHP Dateinterval](http://www.php.net/manual/en/dateinterval.construct.php). Defaults to **1 hour (PT1H)**.
acknowledge_notify | **Optional.** Check "Send Notification" in Acknowledgement dialog by default. Defaults to **1 (true)**. acknowledge_notify | **Optional.** Check "Send Notification" in Acknowledgement dialog by default. Defaults to **1 (true)**.