diff options
author | Sunder Tattavarada <statta@research.att.com> | 2020-09-18 14:27:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-18 14:27:03 +0000 |
commit | 7dda2debf352c4d89c468963c971dc0fd257eec8 (patch) | |
tree | 870e1c2e545990db284586514ab1909f982f2456 /ecomp-sdk | |
parent | 449adc086e9622161a195f9533e0786704ea60cf (diff) | |
parent | a7e43fd0e0a9a80f9dd3a5bdb0bcbd7deb286121 (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.java | 5 |
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; } |