Author: jleroux
Date: Tue Jun 15 09:30:43 2010
New Revision: 954782
URL:
http://svn.apache.org/viewvc?rev=954782&view=revLog:
"Applied fix from trunk for revision: 954733"
------------------------------------------------------------------------
r954733 | jleroux | 2010-06-15 09:46:26 +0200 (mar. 15 juin 2010) | 1 ligne
I was too quick yesterday evening when I removed useless lines at top of updatePartyContactMech in r954583, some of them might turn useful in some cases.
------------------------------------------------------------------------
Modified:
ofbiz/branches/release10.04/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
Modified: ofbiz/branches/release10.04/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml?rev=954782&r1=954781&r2=954782&view=diff==============================================================================
--- ofbiz/branches/release10.04/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml (original)
+++ ofbiz/branches/release10.04/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml Tue Jun 15 09:30:43 2010
@@ -71,6 +71,9 @@ under the License.
</simple-method>
<simple-method method-name="updatePartyContactMech" short-description="Update a PartyContactMech">
+ <if-empty field="parameters.partyId">
+ <set field="parameters.partyId" from-field="userLogin.partyId"/>
+ </if-empty>
<!-- Find old value -->
<make-value entity-name="PartyContactMech" value-field="partyContactMechMap"/>
<set-pk-fields value-field="partyContactMechMap" map="parameters"/>