summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk
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 14:28:55 +0000
commit81c29744ee158d038c62bc7d7c5e796ded4db3be (patch)
treefcbebf49f990d520503354bcea67460ee864f7a5 /ecomp-sdk
parentd443f536cb5f6de0d82e8d0b89141bda6ef46b23 (diff)
Fixed Single Quote issue with Form Fieldsguilin
Fixed Single Quote issue with Form Fields Issue-ID: PORTAL-1014 Change-Id: Ibc75f2e11628f661719f058751c7e49bafb34ee6 Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com> (cherry picked from commit a7e43fd0e0a9a80f9dd3a5bdb0bcbd7deb286121)
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 c5bb9c5b..34ad3c8f 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
@@ -2652,6 +2652,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;
}