Fixes #4009 - "Note - visibility confirmation dialog" setting also requests confirmation for e.g. email and phone articles.

This commit is contained in:
Rolf Schmidt 2022-03-14 10:58:20 +01:00
parent 69755b6afd
commit 2df8c9c7bf
3 changed files with 15 additions and 5 deletions

View file

@ -0,0 +1,10 @@
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class Issue4009FixTitle < ActiveRecord::Migration[6.0]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
Setting.find_by(title: 'Note - visibility confirmation dialog').update(title: 'Article - visibility confirmation dialog')
end
end

View file

@ -704,7 +704,7 @@ Setting.create_if_not_exists(
) )
Setting.create_if_not_exists( Setting.create_if_not_exists(
title: __('Note - visibility confirmation dialog'), title: __('Article - visibility confirmation dialog'),
name: 'ui_ticket_zoom_article_visibility_confirmation_dialog', name: 'ui_ticket_zoom_article_visibility_confirmation_dialog',
area: 'UI::TicketZoom', area: 'UI::TicketZoom',
description: __('Defines if the agent has to accept a confirmation dialog when changing the article visibility to "public".'), description: __('Defines if the agent has to accept a confirmation dialog when changing the article visibility to "public".'),

View file

@ -861,6 +861,10 @@ msgstr ""
msgid "Article" msgid "Article"
msgstr "" msgstr ""
#: db/seeds/settings.rb
msgid "Article - visibility confirmation dialog"
msgstr ""
#: lib/excel_sheet/ticket.rb #: lib/excel_sheet/ticket.rb
msgid "Article Count" msgid "Article Count"
msgstr "" msgstr ""
@ -6598,10 +6602,6 @@ msgstr ""
msgid "Note - default visibility" msgid "Note - default visibility"
msgstr "" msgstr ""
#: db/seeds/settings.rb
msgid "Note - visibility confirmation dialog"
msgstr ""
#: app/assets/javascripts/app/models/email_address.coffee #: app/assets/javascripts/app/models/email_address.coffee
#: app/assets/javascripts/app/models/group.coffee #: app/assets/javascripts/app/models/group.coffee
#: app/assets/javascripts/app/models/job.coffee #: app/assets/javascripts/app/models/job.coffee