Skip to content

Commit

Permalink
Revert body fix because of blocking ticket creation issues (#5028).
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Liebe <fl@zammad.com>
  • Loading branch information
rolfschmidt and fliebe92 committed Feb 3, 2024
1 parent 94f4b09 commit 5ca5217
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db/migrate/20240203201031_issue5028_undo.rb
@@ -0,0 +1,12 @@
# Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/

class Issue5028Undo < ActiveRecord::Migration[7.0]
def change
# return if it's a new setup
return if !Setting.exists?(name: 'system_init_done')

field = ObjectManager::Attribute.for_object('TicketArticle').find_by(name: 'body')
field.screens.delete('create_middle')
field.save!
end
end

0 comments on commit 5ca5217

Please sign in to comment.