From 030418cb7a5bfc4dfb3192dd6e5cadd73aeb645f Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Fri, 15 Apr 2011 11:08:18 -0400 Subject: [PATCH] BUG 6750 "Issue when using Report Tables in Processes" is solved now There was a litle bug in a condition, was fixed and it works fine now --- workflow/engine/classes/class.reportTables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/engine/classes/class.reportTables.php b/workflow/engine/classes/class.reportTables.php index ab7755741..02d60a2da 100644 --- a/workflow/engine/classes/class.reportTables.php +++ b/workflow/engine/classes/class.reportTables.php @@ -394,7 +394,7 @@ class ReportTables $aImportedVars = array();//This array will help to control if the variable already exist while ($aRow = $oDataset->getRow()) { if ($bWhitType) { - if(in_array($aRow['REP_VAR_NAME'],$aImportedVars)){ + if (!in_array($aRow['REP_VAR_NAME'], $aImportedVars)) { $aImportedVars[]=$aRow['REP_VAR_NAME']; $aVars[] = array('sFieldName' => $aRow['REP_VAR_NAME'], 'sType' => $aRow['REP_VAR_TYPE']); } @@ -823,4 +823,4 @@ class ReportTables $PropelDatabase = 'workflow'; return ($PropelDatabase); } -} \ No newline at end of file +}