diff options
author | 2019-10-15 21:47:50 +0200 | |
---|---|---|
committer | 2019-10-15 21:47:50 +0200 | |
commit | a9578d089d36d1efd15be9a540027228e904723b (patch) | |
tree | 92bb4cd7fdd9d221fcc5f75ee05c11a93ad9132d | |
parent | Fix the broken feeds (diff) | |
download | packages-5-dev/es-7.3.tar.gz packages-5-dev/es-7.3.tar.bz2 packages-5-dev/es-7.3.zip |
Fix broken useflag search resultsv7.0.5dev/es-7.3
Whenever a search for a useflag leads to multiple
search results the search currently fails. This
commit fixes this bug.
Signed-off-by: Max Magorsch <max@magorsch.de>
-rw-r--r-- | app/repositories/useflag_repository.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/repositories/useflag_repository.rb b/app/repositories/useflag_repository.rb index 1481ac6..5bc1e00 100644 --- a/app/repositories/useflag_repository.rb +++ b/app/repositories/useflag_repository.rb @@ -51,11 +51,7 @@ class UseflagRepository < BaseRepository processed_results = {} results.each do |result| if processed_results.key? result.name - processed_results[result.name] = { - name: result.name, - description: '(multiple definitions)', - scope: 'multi' - } + processed_results[result.name] = Useflag.new ({ "name"=> result.name, "description" => '(multiple definitions)', "scope" => 'multi' }) else processed_results[result.name] = result end |