2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-01-16 05:56:40 +00:00
|
|
|
class SettingTicketNumberIgnoreSystemIdSupport < ActiveRecord::Migration[4.2]
|
|
|
|
def up
|
|
|
|
|
|
|
|
# return if it's a new setup
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2018-01-16 05:56:40 +00:00
|
|
|
|
|
|
|
Setting.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
title: 'Ticket Number ignore system_id',
|
|
|
|
name: 'ticket_number_ignore_system_id',
|
|
|
|
area: 'Ticket::Core',
|
2018-01-16 05:56:40 +00:00
|
|
|
description: '-',
|
2018-12-19 17:31:51 +00:00
|
|
|
options: {
|
2018-01-16 05:56:40 +00:00
|
|
|
form: [
|
|
|
|
{
|
|
|
|
display: 'Ignore system_id',
|
2018-12-19 17:31:51 +00:00
|
|
|
null: true,
|
|
|
|
name: 'ticket_number_ignore_system_id',
|
|
|
|
tag: 'boolean',
|
2018-01-16 05:56:40 +00:00
|
|
|
options: {
|
|
|
|
true => 'yes',
|
|
|
|
false => 'no',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2019-04-18 03:04:43 +00:00
|
|
|
state: false,
|
2018-01-16 05:56:40 +00:00
|
|
|
preferences: {
|
|
|
|
permission: ['admin.ticket'],
|
2018-12-19 17:31:51 +00:00
|
|
|
hidden: true,
|
2018-01-16 05:56:40 +00:00
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
frontend: false
|
2018-01-16 05:56:40 +00:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|