Author: sichen
Date: Tue Aug 12 11:01:27 2008
New Revision: 685248
URL:
http://svn.apache.org/viewvc?rev=685248&view=revLog:
Fix bug in PartyContactWithPurpose view entity. The join is missing a partyId constraint that causes the wrong data to show up if a party has more than one contact mech of the same type and different purposes (two phone numbers, two addresses, etc.)
Modified:
ofbiz/trunk/applications/party/entitydef/entitymodel.xml
Modified: ofbiz/trunk/applications/party/entitydef/entitymodel.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitymodel.xml?rev=685248&r1=685247&r2=685248&view=diff==============================================================================
--- ofbiz/trunk/applications/party/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/party/entitydef/entitymodel.xml Tue Aug 12 11:01:27 2008
@@ -1755,7 +1755,8 @@
<view-link entity-alias="PCMP" rel-entity-alias="CM">
<key-map field-name="contactMechId"/>
</view-link>
- <view-link entity-alias="CM" rel-entity-alias="PCM">
+ <view-link entity-alias="PCMP" rel-entity-alias="PCM">
+ <key-map field-name="partyId"/>
<key-map field-name="contactMechId"/>
</view-link>
<view-link entity-alias="PCMP" rel-entity-alias="PT">