Peer review from a suggested patch from Hiep Lq -> IDEMPIERE-3408 Encrypted Field can explore by normal user

This commit is contained in:
Carlos Ruiz 2017-06-24 14:44:35 +02:00
parent 10be967c75
commit 18b795150a
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class Textbox extends org.zkoss.zul.Textbox implements EventListener<Even
@Override
public void setValue(String value) throws WrongValueException {
if (m_obscure != null && !m_infocus)
if (m_obscure != null && ("password".equals(getType()) || !m_infocus))
{
super.setValue(m_obscure.getObscuredValue(value));
}