fix: [workflow:evaluateConfition] Fixed bug in `in_and` operator to make it order independant

pull/9677/head
Sami Mokaddem 2024-04-12 10:31:22 +02:00
parent b5b0412022
commit a0b92e4c7b
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,8 @@ class WorkflowBaseModule
if ($operator == 'in_or') {
return !empty($matching);
} elseif ($operator == 'in_and') {
sort($matching);
sort($value);
return array_values($matching) == array_values($value);
} elseif ($operator == 'not_in_or') {
return empty($matching);