Project

General

Profile

« Previous | Next » 

Revision baddf3e3

Added by Dmitri Dolguikh almost 10 years ago

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

(cherry picked from commit 0c82622ce4cde6ac64d833d1fd96e52339ab60b0)

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