From 283d5c97e0b9453273ecf7f97df56e06df31e2ce Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Fri, 24 Aug 2012 12:54:12 +0800 Subject: [PATCH] Ticket #1001274: Check ampersand in grid view --- .../org/adempiere/webui/component/GridTabRowRenderer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java index faf80d58b6..b41caae61b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridTabRowRenderer.java @@ -259,8 +259,9 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt String display = text; if (text != null && text.length() > MAX_TEXT_LENGTH) display = text.substring(0, MAX_TEXT_LENGTH - 3) + "..."; - if (display != null) - display = XMLs.encodeText(display); + // since 5.0.8, the org.zkoss.zhtml.Text is encoded by default +// if (display != null) +// display = XMLs.encodeText(display); label.appendChild(new Text(display)); if (text != null && text.length() > MAX_TEXT_LENGTH) label.setDynamicProperty("title", text);