Skip to content
Snippets Groups Projects
Commit e6a14b40 authored by Erik Hommel's avatar Erik Hommel
Browse files

fix error in case type condition test

parent bdc6c20b
No related branches found
No related tags found
No related merge requests found
......@@ -31,12 +31,12 @@ class CRM_CivirulesConditions_Case_CaseType extends CRM_Civirules_Condition {
$case_type_id = str_replace(CRM_Core_DAO::VALUE_SEPARATOR, "", $case['case_type_id']);
switch ($this->conditionParams['operator']) {
case 0:
if ($case_type_id == $this->conditionParams['case_type_id']) {
if (in_array($case_type_id, $this->conditionParams['case_type_id'])) {
$isConditionValid = TRUE;
}
break;
case 1:
if ($case_type_id != $this->conditionParams['case_type_id']) {
if (!in_array($case_type_id, $this->conditionParams['case_type_id'])) {
$isConditionValid = TRUE;
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment