IDEMPIERE-229 - Bug with Process parameter range (Swing)
This commit is contained in:
parent
ca61e6d5ad
commit
e251dbbc26
|
@ -47,6 +47,7 @@ import org.compiere.swing.CPanel;
|
|||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
* Process Parameter Panel, based on existing ProcessParameter dialog.
|
||||
|
@ -529,6 +530,8 @@ public class ProcessParameterPanel extends CPanel implements VetoableChangeListe
|
|||
if (sb.length() > 0)
|
||||
sb.append(", ");
|
||||
sb.append(field.getHeader());
|
||||
if (m_vEditors2.get(i) != null) // is a range
|
||||
sb.append(" (").append(Msg.getMsg(Env.getCtx(), "From")).append(")");
|
||||
}
|
||||
else
|
||||
field.setError(false);
|
||||
|
@ -536,15 +539,16 @@ public class ProcessParameterPanel extends CPanel implements VetoableChangeListe
|
|||
VEditor vEditor2 = (VEditor)m_vEditors2.get(i);
|
||||
if (vEditor2 != null)
|
||||
{
|
||||
Object data2 = vEditor.getValue();
|
||||
Object data2 = vEditor2.getValue();
|
||||
GridField field2 = (GridField)m_mFields2.get(i);
|
||||
if (data2 == null || data2.toString().length() == 0)
|
||||
{
|
||||
field.setInserting (true); // set editable (i.e. updateable) otherwise deadlock
|
||||
field2.setInserting (true); // set editable (i.e. updateable) otherwise deadlock
|
||||
field2.setError(true);
|
||||
if (sb.length() > 0)
|
||||
sb.append(", ");
|
||||
sb.append(field.getHeader());
|
||||
sb.append(field2.getHeader());
|
||||
sb.append(" (").append(Msg.getMsg(Env.getCtx(), "To")).append(")");
|
||||
}
|
||||
else
|
||||
field2.setError(false);
|
||||
|
|
Loading…
Reference in New Issue