Fixes #4089 - Shared draft attribute in object manage not disabled for onclick.

This commit is contained in:
Rolf Schmidt 2022-05-24 12:38:22 +02:00
parent 5995c0e676
commit 5a6df7fc82
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,10 @@
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class Issue4089FixDraftAttribute < ActiveRecord::Migration[5.0]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')
ObjectManager::Attribute.find_by(name: 'shared_drafts', object_lookup_id: ObjectLookup.by_name('Group')).update(editable: false)
end
end

View file

@ -1824,7 +1824,7 @@ ObjectManager::Attribute.add(
default: true,
permission: ['admin.group'],
},
editable: true,
editable: false,
active: true,
screens: {
create: {