Nicolas Malin created OFBIZ-12546: ------------------------------------- Summary: Element condition-expr doesn't work with compound Key: OFBIZ-12546 URL: https://issues.apache.org/jira/browse/OFBIZ-12546 Project: OFBiz Issue Type: Bug Components: framework/widget Affects Versions: 22.01.01, Upcoming Branch Reporter: Nicolas Malin Assignee: Nicolas Malin
When you create an entity-condition in a form or grid under a compound element, to write a valid xml you write it with the namespace like this : {code:java} <wf:actions> <wf:entity-condition entity-name="PartyRelationship"...> <wf:condition-list> <wf:condition-expr field-name="partyIdFrom" from-field="parameters.partyIdFrom"/> <wf:condition-expr field-name="partyIdTo" from-field="parameters.partyIdTo"/> </wf:condition-list> </wf:entity-condition> </wf:actions>{code} This failed when OFBiz execute the search with error {*}Invalid element with name [wf:condition-expr] found under a condition-list element{*}. The error came from the class *EntityFinderUtil.ConditionList* who analyze the condition-list's children with the namespace + node name instead take only the node name. {code:java} if ("condition-expr".equals(subElement.getNodeName())){code} To solve this issue we only check the local node name regardless from the namespace used. -- This message was sent by Atlassian Jira (v8.20.1#820001)