2022-01-21 07:54:10 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
|
|
|
|
class Issue3924ConfirmationDialog < ActiveRecord::Migration[6.0]
|
|
|
|
def change
|
|
|
|
|
|
|
|
# return if it's a new setup
|
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
|
|
|
|
|
|
|
Setting.create_if_not_exists(
|
2022-01-25 09:11:47 +00:00
|
|
|
title: 'Note - visibility confirmation dialog',
|
2022-01-21 07:54:10 +00:00
|
|
|
name: 'ui_ticket_zoom_article_visibility_confirmation_dialog',
|
|
|
|
area: 'UI::TicketZoom',
|
2022-01-25 09:11:47 +00:00
|
|
|
description: 'Defines if the agent has to accept a confirmation dialog when changing the article visibility to "public".',
|
2022-01-21 07:54:10 +00:00
|
|
|
options: {
|
|
|
|
form: [
|
|
|
|
{
|
|
|
|
display: '',
|
|
|
|
null: true,
|
|
|
|
name: 'ui_ticket_zoom_article_visibility_confirmation_dialog',
|
|
|
|
tag: 'boolean',
|
|
|
|
options: {
|
|
|
|
true => 'yes',
|
|
|
|
false => 'no',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
state: false,
|
|
|
|
preferences: {
|
|
|
|
prio: 100,
|
|
|
|
permission: ['admin.ui'],
|
|
|
|
},
|
|
|
|
frontend: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|