Skip to content

Commit

Permalink
force attribute values with lang to be string
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 23, 2022
1 parent c7106bd commit 8c84c9e
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 @@ -78,8 +78,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.empty?
matched_lang[:no_lang] = Array(model_attribute_val)
unless model_attribute_val.nil? || model_attribute_val.to_s.empty?
matched_lang[:no_lang] = Array(model_attribute_val.to_s)
end
[matched_lang, not_matched_lang]
end
Expand Down

0 comments on commit 8c84c9e

Please sign in to comment.