Author: jleroux
Date: Tue Jun 15 07:46:26 2010
New Revision: 954733
URL:
http://svn.apache.org/viewvc?rev=954733&view=revLog:
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/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=954733&r1=954732&r2=954733&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 Tue Jun 15 07:46:26 2010
@@ -71,6 +71,10 @@ 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"/>