Browse Source

Revert body fix because of blocking ticket creation issues (#5028).

Co-authored-by: Florian Liebe <fl@zammad.com>
Rolf Schmidt 1 year ago
parent
commit
5ca5217f03
1 changed files with 12 additions and 0 deletions
  1. 12 0
      db/migrate/20240203201031_issue5028_undo.rb

+ 12 - 0
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