Follow up for issue #1276 - only set channel data if matrix exists.
This commit is contained in:
parent
fb8f07e6e9
commit
ac8ae54841
1 changed files with 7 additions and 6 deletions
|
@ -135,12 +135,13 @@ class Index extends App.ControllerSubContent
|
||||||
}
|
}
|
||||||
|
|
||||||
# check missing channels
|
# check missing channels
|
||||||
for key, value of params['notification_config']['matrix']
|
if params['notification_config']
|
||||||
if !value.channel
|
for key, value of params['notification_config']['matrix']
|
||||||
value.channel = {
|
if !value.channel
|
||||||
email: false
|
value.channel = {
|
||||||
online: true
|
email: false
|
||||||
}
|
online: true
|
||||||
|
}
|
||||||
|
|
||||||
if !params.notification_config.group_ids || _.isEmpty(params.notification_config.group_ids)
|
if !params.notification_config.group_ids || _.isEmpty(params.notification_config.group_ids)
|
||||||
params.notification_config.group_ids = ['-']
|
params.notification_config.group_ids = ['-']
|
||||||
|
|
Loading…
Reference in a new issue