From 0fff0b76780df8faf81963046d0587615805c53a Mon Sep 17 00:00:00 2001 From: Megan Date: Wed, 11 Mar 2009 12:05:24 +0200 Subject: [PATCH] KTS-4109 - Special characters cause problems when sent as part of the ajax url in windows, moved them into the ajax request as a parameter. "CLONE -"Parse" for the search critera crashes when I have a field with a special char(SUP-1588)" Fixed. --- templates/ktcore/search2/adv_query_search.smarty | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/templates/ktcore/search2/adv_query_search.smarty b/templates/ktcore/search2/adv_query_search.smarty index 1e91812..72932ae 100755 --- a/templates/ktcore/search2/adv_query_search.smarty +++ b/templates/ktcore/search2/adv_query_search.smarty @@ -45,7 +45,7 @@ var gotSearchParseStatus = function callBack(o) { actionAfterParse = 'saveCompleted'; var txtQuery = document.getElementById('txtAdvQuery'); - url='{/literal}{$rootUrl}{literal}/search2/ajax/saveExpr.php?iSavedId={/literal}{$iSavedSearchId}{literal}&txtQuery='+txtQuery.value; + url='{/literal}{$rootUrl}{literal}/search2/ajax/saveExpr.php?iSavedId={/literal}{$iSavedSearchId}{literal}'; //alert(url); Ext.Ajax.request( @@ -53,7 +53,10 @@ var gotSearchParseStatus = function callBack(o) url: url, method: 'GET', success:gotSearchParseStatus, - failure:gotNoStatus + failure:gotNoStatus, + params: { + txtQuery: txtQuery.value + } }); } @@ -89,14 +92,17 @@ function startParsing() return; } var txtQuery = document.getElementById('txtAdvQuery'); - url='{/literal}{$rootUrl}{literal}/search2/ajax/parseExpr.php?txtQuery='+txtQuery.value; + url='{/literal}{$rootUrl}{literal}/search2/ajax/parseExpr.php'; Ext.Ajax.request( { url: url, method: 'GET', success:gotSearchParseStatus, - failure:gotNoStatus + failure:gotNoStatus, + params: { + txtQuery: txtQuery.value + } }); } function butParseClick() -- libgit2 0.21.4