Project

General

Profile

« Previous | Next » 

Revision e611a26c

Added by Joseph Magen about 10 years ago

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

View differences:

app/services/tax_host.rb
# returns a hash of HASH_KEYS used ids by hosts in a given taxonomy
def used_ids
@used_ids ||= default_ids_hash(populate_values = true)
@used_ids = default_ids_hash(populate_values = true)
end
def selected_ids
......
@used_and_selected_or_inherited_ids ||= union_deep_hashes(used_and_selected_ids, inherited_ids)
end
def used_or_inherited_ids
@used_or_inherited_ids = union_deep_hashes(used_ids, inherited_ids)
end
def need_to_be_selected_ids
@need_to_be_selected_ids ||= HashWithIndifferentAccess[hash_keys.map do |col|
if taxonomy.ignore?(hash_key_to_class(col))

Also available in: Unified diff