Fix: Custom attribute filter based on the type
This commit is contained in:
parent
d20eafbda4
commit
05c306f638
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,7 @@ class AutomationRules::ConditionsFilterService < FilterService
|
|||
elsif message_filter
|
||||
@query_string += message_query_string(message_filter, query_hash.with_indifferent_access, current_index)
|
||||
elsif custom_attribute(query_hash['attribute_key'], @account)
|
||||
# send table name according to attribute key right now we are supporting contact based custom attribute filter
|
||||
@query_string += custom_attribute_query(query_hash.with_indifferent_access, 'contacts', current_index)
|
||||
@query_string += custom_attribute_query(query_hash.with_indifferent_access, query_hash['custom_attribute_type'], current_index)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue