Fixes #3707 - Setting for CheckMK not saved in zammad.
This commit is contained in:
parent
33e3b807f3
commit
e359dd75bb
2 changed files with 24 additions and 1 deletions
23
db/migrate/20210827133800_issue_3707_checkmk.rb
Normal file
23
db/migrate/20210827133800_issue_3707_checkmk.rb
Normal 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
|
|
@ -3888,7 +3888,7 @@ Setting.create_if_not_exists(
|
||||||
{
|
{
|
||||||
display: '',
|
display: '',
|
||||||
null: true,
|
null: true,
|
||||||
name: 'checkmk_auto_close',
|
name: 'check_mk_auto_close',
|
||||||
tag: 'boolean',
|
tag: 'boolean',
|
||||||
options: {
|
options: {
|
||||||
true => 'yes',
|
true => 'yes',
|
||||||
|
|
Loading…
Reference in a new issue