Project

General

Profile

« Previous | Next » 

Revision 0c82622c

Added by Dmitri Dolguikh about 10 years ago

fixes #5553: FiltersHelper#search_path returns an empty string for unrecognized resources

View differences:

app/helpers/filters_helper.rb
when 'Parameter'
'' # parameter is only used in API
else
resource_path(type) + '/auto_complete_search'
resource_path = resource_path(type)
resource_path.nil? ? "" : resource_path + auto_complete_search_path
end
end
end
def auto_complete_search_path
'/auto_complete_search'
end
def resource_path(type)
return '' if type.nil?

Also available in: Unified diff