Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Error with "OR" conditions on Workflows #14703

Open
wants to merge 1 commit into
base: developer
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions modules/com_vtiger_workflow/VTJsonCondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ public function evaluate($condition, Vtiger_Record_Model $recordModel)
if (!empty($logicalOperator)) {
switch ($logicalOperator) {
case 'and':
$finalResult = ($finalResult && $result);
break;
case 'or':
$finalResult = ($finalResult || $result);
$finalResult = ($finalResult && $result);
break;
default:
break;
Expand Down