summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk
diff options
context:
space:
mode:
authorSunder Tattavarada <statta@research.att.com>2020-09-18 14:27:03 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-18 14:27:03 +0000
commit7dda2debf352c4d89c468963c971dc0fd257eec8 (patch)
tree870e1c2e545990db284586514ab1909f982f2456 /ecomp-sdk
parent449adc086e9622161a195f9533e0786704ea60cf (diff)
parenta7e43fd0e0a9a80f9dd3a5bdb0bcbd7deb286121 (diff)
Merge "Fixed Single Quote issue with Form Fields"
Diffstat (limited to 'ecomp-sdk')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/base/ReportWrapper.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/base/ReportWrapper.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/base/ReportWrapper.java
index 27ad62f9..4037bd0e 100644
--- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/base/ReportWrapper.java
+++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/base/ReportWrapper.java
@@ -2651,6 +2651,11 @@ public class ReportWrapper extends org.onap.portalsdk.analytics.RaptorObject imp
generatedChartSQL = replaceNewLine(generatedChartSQL, "" + '\n', " " + '\n' + " ");
}
+ //Added Below code to by pass single quotes issue with form fields
+ if(generatedSQL != null && !generatedSQL.isEmpty()) {
+ generatedSQL = generatedSQL.replace("'(", "(");
+ generatedSQL = generatedSQL.replace(")'", ")");
+ }
return generatedSQL;
}