Skip to content

Commit

Permalink
Merge pull request #2442 from manyfold3d/fix-broken-search
Browse files Browse the repository at this point in the history
Fix PostgreSQL error during search
  • Loading branch information
Floppy committed Jul 25, 2024
2 parents 2bf26e9 + af1be7e commit bf35b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/model_filters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def generate_tag_list(models = nil, filter_tags = nil)
# Ignore any tags that have been applied as filters
tags = all_tags = tags.where.not(id: filter_tags) if filter_tags
# Generate a list of tags shared by the list of models
tags = tags.includes(:taggings).where("taggings.taggable": models) if models
tags = tags.includes(:taggings).where("taggings.taggable": models.map(&:id)) if models
# Apply tag sorting
tags = case current_user.tag_cloud_settings["sorting"]
when "alphabetical"
Expand Down

0 comments on commit bf35b5f

Please sign in to comment.