Fixed slack options not showing in the webui (#9107)

* Fixed slack options not showing in the webui

* Update config extraction too
This commit is contained in:
Neil Lathwood
2018-08-30 20:58:42 +01:00
committed by GitHub
parent 3446cf7989
commit e20152ec30

View File

@@ -33,7 +33,7 @@ class Slack extends Transport
return $this->deliverAlertOld($obj, $opts); return $this->deliverAlertOld($obj, $opts);
} }
$slack_opts['url'] = $this->config['slack-url']; $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); list($k,$v) = explode('=', $option);
$slack_opts[$k] = $v; $slack_opts[$k] = $v;
} }
@@ -98,7 +98,7 @@ class Slack extends Transport
], ],
[ [
'title' => 'Slack Options', 'title' => 'Slack Options',
'name' => 'options', 'name' => 'slack-options',
'descr' => 'Slack Options', 'descr' => 'Slack Options',
'type' => 'textarea', 'type' => 'textarea',
] ]