From 18c383276d5dc12a69d8da6d2538e807cbfa1ace Mon Sep 17 00:00:00 2001 From: jennylee Date: Wed, 7 Nov 2012 13:03:45 -0400 Subject: [PATCH] BUG-6747 The Edit trigger associative array does not work ok. The simple quotes was not define when uses variables like '@@Apellido', now it turns into double quotes like in another array assignations. --- workflow/engine/templates/triggers/triggers_EditWizard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/engine/templates/triggers/triggers_EditWizard.php b/workflow/engine/templates/triggers/triggers_EditWizard.php index c77442af7..d4a8efd2d 100755 --- a/workflow/engine/templates/triggers/triggers_EditWizard.php +++ b/workflow/engine/templates/triggers/triggers_EditWizard.php @@ -153,6 +153,8 @@ try { // str_replace ( '"', '', $paramDefaultValue ) ) ); $paramValue = $_GET[trim( str_replace( "$", "", $paramName ) )]; $template->assign ( 'ADD_TRI_VALUE', str_replace("\'", "'", $paramValue) ); + //turn single quotes to double quotes into an array asignation + $template->assign ( 'ADD_TRI_VALUE', str_replace("'", """, $paramValue) ); if ($paramDefaultValue != "") { $fieldDescription = $paramDescription . "
"; $fieldDescription .= $paramDefaultValue . " | " . $paramType; @@ -179,4 +181,3 @@ try { die ( $oException->getMessage () ); } unset ( $_SESSION ['PROCESS'] ); - \ No newline at end of file