IDEMPIERE-921 Obscured fields show information when clicked
This commit is contained in:
parent
81a67229c0
commit
f32075be4a
|
@ -369,7 +369,7 @@ public final class VString extends CTextField
|
||||||
String text = super.getText();
|
String text = super.getText();
|
||||||
if (m_obscure != null && text != null && text.length() > 0)
|
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();
|
text = m_obscure.getClearValue();
|
||||||
}
|
}
|
||||||
return text;
|
return text;
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class Textbox extends org.zkoss.zul.Textbox implements EventListener<Even
|
||||||
String value = super.getValue();
|
String value = super.getValue();
|
||||||
if (m_obscure != null && value != null && value.length() > 0)
|
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();
|
value = m_obscure.getClearValue();
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Reference in New Issue