20230224160814_issue4505_inconsistent_screen_view_active_attribute.rb 454 B

12345678910111213141516
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue4505InconsistentScreenViewActiveAttribute < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. object = ObjectManager::Attribute.get(
  7. name: 'active',
  8. object: 'Organization'
  9. )
  10. object.screens[:view][:'ticket.agent'][:shown] = false
  11. object.save!
  12. end
  13. end