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
|
// TODO: Write MRule and create accessor by Value, EventType and RuleType
|
||||||
int script_id = DB.getSQLValue(
|
int script_id = DB.getSQLValue(
|
||||||
null,
|
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);
|
rule_value);
|
||||||
if (script_id > 0) {
|
if (script_id > 0) {
|
||||||
X_AD_Rule rule = new X_AD_Rule(ctx, script_id, null);
|
X_AD_Rule rule = new X_AD_Rule(ctx, script_id, null);
|
||||||
|
|
Loading…
Reference in New Issue