Skip to content
Snippets Groups Projects
Commit 3082db18 authored by Anas Mawlawi's avatar Anas Mawlawi Committed by saranya ashokkumar
Browse files

Issue #3346974 by Anas_maw, saranya ashokkumar: All rules are executed (emails...

Issue #3346974 by Anas_maw, saranya ashokkumar: All rules are executed (emails are sent without any check) / Emails From all states are not working
parent dd7e5aca
No related branches found
No related tags found
No related merge requests found
......@@ -81,10 +81,10 @@ class WorkflowNotification extends ConfigEntityBase implements WorkflowNotificat
$result = \Drupal::entityQuery("workflow_notify");
$from_state = $result->orConditionGroup()
->condition('from_sid', $from_sid, '=')
->condition('from_sid', '', '=');
->condition('from_sid', 'all', '=');
$to_state = $result->orConditionGroup()
->condition('to_sid', $to_sid, '=')
->condition('to_sid', '', '=');
->condition('to_sid', 'all', '=');
$result->condition($from_state)
->condition($to_state)
->condition('wid', $wid, '=')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment