[ https://issues.apache.org/jira/browse/OFBIZ-12546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484689#comment-17484689 ]
ASF subversion and git services commented on OFBIZ-12546: --------------------------------------------------------- Commit c12e727df21f458300876b3d8c4c56a352c3bd25 in ofbiz-framework's branch refs/heads/release22.01 from Nicolas Malin [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=c12e727 ] Fixed: Element condition-[expr/list/object] doesn't work with compound (OFBIZ-12546) 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 : <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> 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. if ("condition-expr".equals(subElement.getNodeName())) To solve this issue we only check the local node name regardless from the namespace used. > 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 > Priority: Minor > Labels: compound, widget > Attachments: OFBIZ-12546.patch > > > 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)