From 915a64e9850b6a89fb3c60c16b15c54b61580f8e Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 29 Aug 2018 21:18:48 +0100 Subject: [PATCH 1/2] Fixed slack options not showing in the webui --- LibreNMS/Alert/Transport/Slack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Alert/Transport/Slack.php b/LibreNMS/Alert/Transport/Slack.php index 4e3086df584e..10ef71742240 100644 --- a/LibreNMS/Alert/Transport/Slack.php +++ b/LibreNMS/Alert/Transport/Slack.php @@ -98,7 +98,7 @@ public static function configTemplate() ], [ 'title' => 'Slack Options', - 'name' => 'options', + 'name' => 'slack-options', 'descr' => 'Slack Options', 'type' => 'textarea', ] From 9f5711f2e2ce1a97aa28ffc4838cbad71dba75e2 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 29 Aug 2018 16:07:57 -0500 Subject: [PATCH 2/2] Update config extraction too --- LibreNMS/Alert/Transport/Slack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Alert/Transport/Slack.php b/LibreNMS/Alert/Transport/Slack.php index 10ef71742240..ffc82a9f4364 100644 --- a/LibreNMS/Alert/Transport/Slack.php +++ b/LibreNMS/Alert/Transport/Slack.php @@ -33,7 +33,7 @@ public function deliverAlert($obj, $opts) return $this->deliverAlertOld($obj, $opts); } $slack_opts['url'] = $this->config['slack-url']; - foreach (explode(PHP_EOL, $this->config['options']) as $option) { + foreach (explode(PHP_EOL, $this->config['slack-options']) as $option) { list($k,$v) = explode('=', $option); $slack_opts[$k] = $v; }