From e1ccb9a1893e633a25b1827b510882d22f8f17e5 Mon Sep 17 00:00:00 2001 From: Nazariy Velychenko Date: Thu, 25 Jun 2020 18:48:25 +0300 Subject: [PATCH] OI-39: #comment Added condition to check if voted the same user that created the idea. --- ...les.reaction.earn_points_for_voting_a_idea.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/install/rules.reaction.earn_points_for_voting_a_idea.yml b/config/install/rules.reaction.earn_points_for_voting_a_idea.yml index b01c2799c..1629adf3a 100644 --- a/config/install/rules.reaction.earn_points_for_voting_a_idea.yml +++ b/config/install/rules.reaction.earn_points_for_voting_a_idea.yml @@ -48,6 +48,21 @@ expression: provides_mapping: { } condition_id: openideal_user_is_voted negate: false + - + id: rules_condition + uuid: 077a555d-78ba-4e37-bf84-5bfb1bafeed6 + weight: 0 + context_values: + operation: '==' + context_mapping: + data: vote.entity_id.entity.uid.target_id + value: vote.user_id.target_id + context_processors: + operation: + rules_tokens: { } + provides_mapping: { } + condition_id: rules_data_comparison + negate: true actions: id: rules_action_set uuid: 6e2e6d92-312b-4899-ae41-b4688bd8d0d9