[ 
https://issues.apache.org/jira/browse/OFBIZ-6779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux closed OFBIZ-6779.
----------------------------------
       Resolution: Fixed
         Assignee: Jacques Le Roux
    Fix Version/s: Upcoming Branch
                   13.07.03
                   12.04.06
                   14.12.01

Thanks Vineet,

FIxed in
trunk r1721625
R14.12 r1721626
R13.07 r1721627
R12.04 r1721628


> Wrong entity condition expression for fetching the view entity 
> PartyAndContactMech.
> -----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-6779
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6779
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: 12.04.05, 13.07.02
>            Reporter: vineet
>            Assignee: Jacques Le Roux
>             Fix For: 14.12.01, 12.04.06, 13.07.03, Upcoming Branch
>
>
> In party module present in application component the file 
> PartyContactMechServices.xml containing simple-method createPartyEmailAddress 
> (meant for creating an email address for party) is using wrong entity 
> condition expression for fetching the view entity PartyAndContactMech.
> It is using from-field attribute for the comaprison of a constant value 
> instead of the value attribute.
> Current Code:
> <entity-condition list="partyAndContactMechs" 
> entity-name="PartyAndContactMech">
>       <condition-list combine="and">
>               <condition-expr field-name="partyId" 
> from-field="parameters.partyId"/>
>               <condition-expr field-name="contactMechTypeId" 
> from-field="EMAIL_ADDRESS"/>
>               <condition-expr field-name="infoString" 
> from-field="parameters.emailAddress" ignore-case="true"/>
>       </condition-list>
> </entity-condition>
> Corrected Code:
> <entity-condition list="partyAndContactMechs" 
> entity-name="PartyAndContactMech">
>       <condition-list combine="and">
>               <condition-expr field-name="partyId" 
> from-field="parameters.partyId"/>
>               <condition-expr field-name="contactMechTypeId" 
> value="EMAIL_ADDRESS"/>
>               <condition-expr field-name="infoString" 
> from-field="parameters.emailAddress" ignore-case="true"/>
>       </condition-list>
> </entity-condition>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to