Fix blank line registering as tag in subscription
This commit is contained in:
@@ -130,7 +130,7 @@ class TagSubscription < ActiveRecord::Base
|
|||||||
relation = relation.where(["name ILIKE ? ESCAPE E'\\\\'", sub_group.to_escaped_for_sql_like])
|
relation = relation.where(["name ILIKE ? ESCAPE E'\\\\'", sub_group.to_escaped_for_sql_like])
|
||||||
end
|
end
|
||||||
|
|
||||||
relation.map {|x| x.tag_query.split(/\r?\n/)}.flatten
|
relation.map {|x| x.tag_query_array}.flatten
|
||||||
else
|
else
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user