From e20152ec3037ffd152bd2231baeb22a18f2f9bb2 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Thu, 30 Aug 2018 20:58:42 +0100 Subject: [PATCH] Fixed slack options not showing in the webui (#9107) * Fixed slack options not showing in the webui * Update config extraction too --- LibreNMS/Alert/Transport/Slack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibreNMS/Alert/Transport/Slack.php b/LibreNMS/Alert/Transport/Slack.php index 4e3086df58..ffc82a9f43 100644 --- a/LibreNMS/Alert/Transport/Slack.php +++ b/LibreNMS/Alert/Transport/Slack.php @@ -33,7 +33,7 @@ class Slack extends Transport 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; } @@ -98,7 +98,7 @@ class Slack extends Transport ], [ 'title' => 'Slack Options', - 'name' => 'options', + 'name' => 'slack-options', 'descr' => 'Slack Options', 'type' => 'textarea', ]