Skip to content

Commit

Permalink
remove unused option if from work package property select
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Sep 27, 2024
1 parent 32a72af commit add648f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/models/queries/work_packages/selects/property_select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit add648f

Please sign in to comment.