Fix [2908208] - Bad Context of Cached Objects
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2908208&group_id=176962
This commit is contained in:
parent
b38c5215e8
commit
6297988963
|
@ -79,7 +79,7 @@ public class ModelValidationEngine
|
||||||
super ();
|
super ();
|
||||||
// Load global validators
|
// Load global validators
|
||||||
|
|
||||||
MTable table = MTable.get(new Properties(), X_AD_ModelValidator.Table_ID);
|
MTable table = MTable.get(Env.getCtx(), X_AD_ModelValidator.Table_ID);
|
||||||
Query query = table.createQuery("IsActive='Y'", null);
|
Query query = table.createQuery("IsActive='Y'", null);
|
||||||
query.setOrderBy("SeqNo");
|
query.setOrderBy("SeqNo");
|
||||||
try {
|
try {
|
||||||
|
@ -100,7 +100,7 @@ public class ModelValidationEngine
|
||||||
}
|
}
|
||||||
|
|
||||||
// Go through all Clients and start Validators
|
// Go through all Clients and start Validators
|
||||||
MClient[] clients = MClient.getAll(new Properties());
|
MClient[] clients = MClient.getAll(Env.getCtx());
|
||||||
for (int i = 0; i < clients.length; i++)
|
for (int i = 0; i < clients.length; i++)
|
||||||
{
|
{
|
||||||
String classNames = clients[i].getModelValidationClasses();
|
String classNames = clients[i].getModelValidationClasses();
|
||||||
|
|
Loading…
Reference in New Issue