summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudarshan Kumar <sudarshan.kumar@att.com>2020-09-18 15:00:03 +0530
committerSudarshan Kumar <sudarshan.kumar@att.com>2020-09-18 15:00:28 +0530
commita7e43fd0e0a9a80f9dd3a5bdb0bcbd7deb286121 (patch)
treefaab1f8b6801792b2ee7b509c1ff8561c537eade
parent10db6965b7a40b7fc8cbde9e9dc04f3dc097f4d3 (diff)
Fixed Single Quote issue with Form Fields
Fixed Single Quote issue with Form Fields Issue-ID: PORTAL-1014 Change-Id: Ibc75f2e11628f661719f058751c7e49bafb34ee6 Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
-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;
}