Skip to content

Commit 047afc3

Browse files
authoredAug 16, 2017
Merge pull request #77 from tkuchiki/fix/support-3.4.2
supported redmine 3.4.2
2 parents da3c019 + 04441e2 commit 047afc3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
 

‎lib/redmine_tagging/patches/query_patch.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ def available_tags_filter
3737
tags = tags.sort_by { |t| t.name.downcase }.map do |tag|
3838
[tag_without_sharp(tag), tag_without_sharp(tag)]
3939
end
40-
41-
{
42-
'tags' => {
43-
type: :list_optional,
44-
values: tags,
45-
name: l(:field_tags),
46-
order: 21,
47-
field: 'tags'
48-
}
40+
field = 'tags'
41+
options = {
42+
type: :list_optional,
43+
values: tags,
44+
name: l(:field_tags),
45+
order: 21,
4946
}
47+
filter = ActiveSupport::OrderedHash.new
48+
filter[field] = QueryFilter.new(field, options)
49+
filter
5050
end
5151

5252
def sql_for_field_with_tags(field, operator, v, db_table, db_field, is_custom_filter = false)

0 commit comments

Comments
 (0)