From 68e07a93b5d6134fc1b317f2ac17c8171f8e934f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 10 May 2013 08:34:28 -0500 Subject: [PATCH] IDEMPIERE-914 Any user can obtain all passwords via field editor - thanks to Anthony Sossah (xolali) --- .../src/org/adempiere/webui/editor/WStringEditor.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java index dc9bbebcb0..3fcd4a7d87 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java @@ -139,9 +139,12 @@ public class WStringEditor extends WEditor implements ContextMenuListener if (getComponent() instanceof Textbox) ((Textbox)getComponent()).setObscureType(obscureType); - popupMenu = new WEditorPopupMenu(false, false, isShowPreference()); - addTextEditorMenu(popupMenu); - addChangeLogMenu(popupMenu); + + if(!(this instanceof WPasswordEditor)){ // check password field + popupMenu = new WEditorPopupMenu(false, false, isShowPreference()); + addTextEditorMenu(popupMenu); + addChangeLogMenu(popupMenu); + } if (gridField.isAutocomplete()) { Combobox combo = (Combobox)getComponent();