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.
This commit is contained in:
jennylee
2012-11-07 13:03:45 -04:00
parent b3b6f457b3
commit 18c383276d

View File

@@ -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 . "<br>";
$fieldDescription .= $paramDefaultValue . " | " . $paramType;
@@ -179,4 +181,3 @@ try {
die ( $oException->getMessage () );
}
unset ( $_SESSION ['PROCESS'] );