From 81c29744ee158d038c62bc7d7c5e796ded4db3be Mon Sep 17 00:00:00 2001 From: Sudarshan Kumar Date: Fri, 18 Sep 2020 15:00:03 +0530 Subject: 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 (cherry picked from commit a7e43fd0e0a9a80f9dd3a5bdb0bcbd7deb286121) --- .../java/org/onap/portalsdk/analytics/model/base/ReportWrapper.java | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- cgit 1.2.3-korg