Skip to content

Commit

Permalink
Merge branch 'pl/add-mainlang-defaults-refactored' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 25, 2022
2 parents 25874f8 + 34a9fdf commit e26325e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/goo/sparql/mixins/solution_lang_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def save_other_lang_val(id, attr, index, value)
def matched_languages(index_values, model_attribute_val)
not_matched_lang = index_values[:not_matched]
matched_lang = index_values.reject { |key| key == :not_matched }
unless model_attribute_val.nil? || model_attribute_val.to_s.empty?
matched_lang[:no_lang] = Array(model_attribute_val.to_s)
unless model_attribute_val.nil? || Array(model_attribute_val).empty?
matched_lang[:no_lang] = Array(model_attribute_val)
end
[matched_lang, not_matched_lang]
end
Expand Down

0 comments on commit e26325e

Please sign in to comment.