From add648fa67f2c54719316a21796a8c0b66992e35 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Fri, 27 Sep 2024 13:51:03 +0200 Subject: [PATCH] remove unused option `if` from work package property select --- .../queries/work_packages/selects/property_select.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/models/queries/work_packages/selects/property_select.rb b/app/models/queries/work_packages/selects/property_select.rb index 48635b1c296e..2515f7b02946 100644 --- a/app/models/queries/work_packages/selects/property_select.rb +++ b/app/models/queries/work_packages/selects/property_select.rb @@ -135,15 +135,12 @@ def caption shared_with_users: { sortable: false, groupable: false - } } def self.instances(_context = nil) - property_selects.filter_map do |name, options| - next unless !options[:if] || options[:if].call - - new(name, options.except(:if)) + property_selects.map do |name, options| + new(name, options) end end end