Fixes #4089 - Shared draft attribute in object manage not disabled for onclick.
This commit is contained in:
parent
5995c0e676
commit
5a6df7fc82
2 changed files with 11 additions and 1 deletions
10
db/migrate/20220524074118_issue4089_fix_draft_attribute.rb
Normal file
10
db/migrate/20220524074118_issue4089_fix_draft_attribute.rb
Normal 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
|
|
@ -1824,7 +1824,7 @@ ObjectManager::Attribute.add(
|
||||||
default: true,
|
default: true,
|
||||||
permission: ['admin.group'],
|
permission: ['admin.group'],
|
||||||
},
|
},
|
||||||
editable: true,
|
editable: false,
|
||||||
active: true,
|
active: true,
|
||||||
screens: {
|
screens: {
|
||||||
create: {
|
create: {
|
||||||
|
|
Loading…
Reference in a new issue