One more slight fix for [ adempiere-Feature Requests-1877902 ] Implement JSR 223: Scripting callout
This commit is contained in:
parent
5b6b3bda12
commit
f3dad924e0
|
@ -170,7 +170,11 @@ public class GridFieldVO implements Serializable
|
|||
// TODO: Write MRule and create accessor by Value, EventType and RuleType
|
||||
int script_id = DB.getSQLValue(
|
||||
null,
|
||||
"SELECT AD_Rule_ID FROM AD_Rule WHERE TRIM(Value)=? AND EventType='C' AND RuleType='B' AND IsActive='Y'",
|
||||
"SELECT AD_Rule_ID FROM AD_Rule WHERE TRIM(Value)=? AND EventType='"
|
||||
+ X_AD_Rule.EVENTTYPE_Callout
|
||||
+ "' AND RuleType='"
|
||||
+ X_AD_Rule.RULETYPE_JSR223ScriptingAPIs
|
||||
+ "' AND IsActive='Y'",
|
||||
rule_value);
|
||||
if (script_id > 0) {
|
||||
X_AD_Rule rule = new X_AD_Rule(ctx, script_id, null);
|
||||
|
|
Loading…
Reference in New Issue