Skip to content

Commit

Permalink
Replace item by parent when sending tipline keyword search results. (#…
Browse files Browse the repository at this point in the history
…1821)

Fixes CV2-4071.
  • Loading branch information
caiosba committed Mar 7, 2024
1 parent ecd051b commit 7b42d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/smooch_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def search(app_id, uid, language, message, team_id, workflow, provider = nil)
pm = Relationship.confirmed_parent(pm)
report = pm.get_dynamic_annotation('report_design')
!report.nil? && !!report.should_send_report_in_this_language?(language)
end.uniq
end.collect{ |pm| Relationship.confirmed_parent(pm) }.uniq
if results.empty?
self.bundle_messages(uid, '', app_id, 'default_requests', nil, true)
self.send_final_message_to_user(uid, self.get_custom_string('search_no_results', language), workflow, language, 'no_results')
Expand Down

0 comments on commit 7b42d68

Please sign in to comment.