Project

General

Profile

« Previous | Next » 

Revision ae0d599a

Added by Ori Rabin about 9 years ago

Fixes #8861 - Lengthy organization or location names showed in tooltip

View differences:

app/helpers/taxonomy_helper.rb
end
def organization_dropdown(count)
text = Organization.current.nil? ? _("Any Organization") : Organization.current.to_label
text = Organization.current.nil? ? _("Any Organization") : truncate(Organization.current.to_label)
if count == 1 && !User.current.admin?
link_to text, "#"
else
......
end
def location_dropdown(count)
text = Location.current.nil? ? _("Any Location") : Location.current.to_label
text = Location.current.nil? ? _("Any Location") : truncate(Location.current.to_label)
if count == 1 && !User.current.admin?
link_to text, "#"
else

Also available in: Unified diff