[ BF 2960231 ] - PromotionValidator not fired in correct client
The promotion validator document validator is not fired because the client id in the listener is not set correctly before adding the table to the Model Validation Engine https://sourceforge.net/tracker/?func=detail&aid=2960231&group_id=176962&atid=879332
This commit is contained in:
parent
d940e4d3e9
commit
139f65a82e
|
@ -140,10 +140,11 @@ public class PromotionValidator implements ModelValidator {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initialize(ModelValidationEngine engine, MClient client) {
|
public void initialize(ModelValidationEngine engine, MClient client) {
|
||||||
engine.addDocValidate(X_C_Order.Table_Name, this);
|
|
||||||
engine.addModelChange(X_C_OrderLine.Table_Name, this);
|
|
||||||
if (client != null)
|
if (client != null)
|
||||||
m_AD_Client_ID = client.getAD_Client_ID();
|
m_AD_Client_ID = client.getAD_Client_ID();
|
||||||
|
engine.addDocValidate(X_C_Order.Table_Name, this);
|
||||||
|
engine.addModelChange(X_C_OrderLine.Table_Name, this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String login(int AD_Org_ID, int AD_Role_ID, int AD_User_ID) {
|
public String login(int AD_Org_ID, int AD_Role_ID, int AD_User_ID) {
|
||||||
|
|
Loading…
Reference in New Issue