From 218fc120543931a1738c93540cadab8ac092df41 Mon Sep 17 00:00:00 2001 From: Victor Saisa Lopez Date: Wed, 14 Mar 2012 15:54:51 -0400 Subject: [PATCH] BUG 7646 "Condition Editing option for steps is not working" SOLVED - You can not attach files in inputDocuments - Was added a condition to affect only to the translations --- gulliver/system/class.g.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 4446d2a52..90c27c023 100755 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -1908,11 +1908,14 @@ $output = $outputHeader.$output; } //Call function if (($match[1][$r][0]==='')&&($match[2][$r][0]==='')&&($match[3][$r][0]!=='')) { - $arraySearch = array("'"); - $arrayReplace = array("\\'"); + eval('$strAux = ' . $match[3][$r][0] . '(\'' . addcslashes(G::replaceDataField(stripslashes($match[4][$r][0]),$result),'\\\'') . '\');'); - eval('$strAux = '.$match[3][$r][0].'(\''.addcslashes(G::replaceDataField(stripslashes($match[4][$r][0]),$result),'\\\'').'\');'); - $strAux = str_replace($arraySearch, $arrayReplace, $strAux); + if ($match[3][$r][0] == "G::LoadTranslation") { + $arraySearch = array("'"); + $arrayReplace = array("\\'"); + + $strAux = str_replace($arraySearch, $arrayReplace, $strAux); + } $__textoEval .= $strAux; continue; }