Revision e611a26c
Added by Joseph Magen about 10 years ago
app/helpers/taxonomy_helper.rb | ||
---|---|---|
end
|
||
|
||
def taxonomy_selects(f, selected_ids, taxonomy, label, options = {}, options_html = {})
|
||
options[:disabled] = Array.wrap(options[:disabled]) + Array.wrap(taxonomy.current.try(:id))
|
||
options[:disabled] = Array.wrap(options[:disabled])
|
||
options[:label] ||= _(label)
|
||
multiple_selects f, label.downcase, taxonomy, selected_ids, options, options_html
|
||
end
|
Also available in: Unified diff
fixes #4605 - users should not be able to de-select disabled items in multi-select widget
fixes #4618 - added back tooltips inherited, used, and used in location / organization edit
fixes #4219 - do not disable current organization/location on multi-select