Fixes #3707 - Setting for CheckMK not saved in zammad.

This commit is contained in:
Rolf Schmidt 2021-08-27 12:40:14 +01:00
parent 33e3b807f3
commit e359dd75bb
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,23 @@
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class Issue3707Checkmk < ActiveRecord::Migration[6.0]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Setting.find_by(name: 'check_mk_auto_close').update(options: {
form: [
{
display: '',
null: true,
name: 'check_mk_auto_close',
tag: 'boolean',
options: {
true => 'yes',
false => 'no',
},
},
],
})
end
end

View file

@ -3888,7 +3888,7 @@ Setting.create_if_not_exists(
{
display: '',
null: true,
name: 'checkmk_auto_close',
name: 'check_mk_auto_close',
tag: 'boolean',
options: {
true => 'yes',