IDEMPIERE-1108 Some bugs found while testing 2Pack / export the validation rule attached to the field
This commit is contained in:
parent
6bdfc00408
commit
e5ff5c09e7
|
@ -33,6 +33,7 @@ import org.compiere.model.I_AD_Field;
|
|||
import org.compiere.model.I_AD_FieldGroup;
|
||||
import org.compiere.model.I_AD_Reference;
|
||||
import org.compiere.model.I_AD_Tab;
|
||||
import org.compiere.model.I_AD_Val_Rule;
|
||||
import org.compiere.model.MField;
|
||||
import org.compiere.model.X_AD_Field;
|
||||
import org.compiere.model.X_AD_Package_Imp_Detail;
|
||||
|
@ -120,6 +121,12 @@ public class FieldElementHandler extends AbstractElementHandler {
|
|||
ElementHandler handler = packOut.getHandler(I_AD_Reference.Table_Name);
|
||||
handler.packOut(packOut,document,null,m_Field.getAD_Reference_ID());
|
||||
}
|
||||
|
||||
if (m_Field.getAD_Val_Rule_ID() > 0)
|
||||
{
|
||||
ElementHandler handler = packOut.getHandler(I_AD_Val_Rule.Table_Name);
|
||||
handler.packOut(packOut,document,null,m_Field.getAD_Val_Rule_ID());
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue