IDEMPIERE-921 Obscured fields show information when clicked

This commit is contained in:
Carlos Ruiz 2013-05-13 17:24:24 -05:00
parent 81a67229c0
commit f32075be4a
2 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ public final class VString extends CTextField
String text = super.getText();
if (m_obscure != null && text != null && text.length() > 0)
{
if (text.equals(m_obscure.getObscuredValue()))
if (isReadWrite() && text.equals(m_obscure.getObscuredValue()))
text = m_obscure.getClearValue();
}
return text;

View File

@ -86,7 +86,7 @@ public class Textbox extends org.zkoss.zul.Textbox implements EventListener<Even
String value = super.getValue();
if (m_obscure != null && value != null && value.length() > 0)
{
if (value.equals(m_obscure.getObscuredValue()))
if (!isReadonly() && value.equals(m_obscure.getObscuredValue()))
value = m_obscure.getClearValue();
}
return value;