Author: jleroux
Date: Thu Dec 24 14:32:00 2015
New Revision: 1721625

URL: http://svn.apache.org/viewvc?rev=1721625&view=rev
Log:
Fixes a bug reported by Vinet at 
https://issues.apache.org/jira/browse/OFBIZ-6779 - "Wrong entity condition 
expression for fetching the view entity PartyAndContactMech."

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 comparison of a constant value instead 
of the value attribute.

Modified:
    
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml

Modified: 
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml?rev=1721625&r1=1721624&r2=1721625&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
 (original)
+++ 
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
 Thu Dec 24 14:32:00 2015
@@ -272,7 +272,7 @@ under the License.
         <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="contactMechTypeId" 
value="EMAIL_ADDRESS"/>
                 <condition-expr field-name="infoString" 
from-field="parameters.emailAddress" ignore-case="true"/>
             </condition-list>
         </entity-condition>


Reply via email to