You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2014/11/29 11:06:56 UTC
svn commit: r1642411 - in /ofbiz/branches/release13.07/applications/party:
config/PartyUiLabels.xml
script/org/ofbiz/party/contact/PartyContactMechServices.xml
Author: ashish
Date: Sat Nov 29 10:06:55 2014
New Revision: 1642411
URL: http://svn.apache.org/r1642411
Log:
Applied bug fix from trunk r1642409.
Applied bug fix from jira issue OFBIZ-5877 - Add new address not workign on manage address screen.
Thanks Rishi for the contribution.
Modified:
ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml
ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
Modified: ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml?rev=1642411&r1=1642410&r2=1642411&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml Sat Nov 29 10:06:55 2014
@@ -11009,6 +11009,9 @@
<value xml:lang="zh">è§è²ç±»åæ¥èª</value>
<value xml:lang="zh_TW">è§è²é¡åä¾èª</value>
</property>
+ <property key="PartyRoleTypeNotFoundForTheParty">
+ <value xml:lang="en">Role Type ${roleTypeId} not found for the party.</value>
+ </property>
<property key="PartyRoleTypeId">
<value xml:lang="de">Rolle Typ ID</value>
<value xml:lang="en">RoleType ID</value>
Modified: ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml?rev=1642411&r1=1642410&r2=1642411&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml (original)
+++ ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml Sat Nov 29 10:06:55 2014
@@ -418,6 +418,14 @@ under the License.
</simple-method>
<simple-method method-name="createPostalAddressAndPurposes" short-description="Create postal address, purposes and set them defaults" login-required="false">
+ <if-not-empty field="parameters.roleTypeId">
+ <entity-one value-field="partyRole" entity-name="PartyRole" />
+ <if-empty field="partyRole">
+ <set field="roleTypeId" from-field="parameters.roleTypeId"/>
+ <add-error><fail-property resource="PartyUiLabels" property="PartyRoleTypeNotFoundForTheParty"/></add-error>
+ </if-empty>
+ <check-errors />
+ </if-not-empty>
<call-service service-name="createPartyPostalAddress" in-map-name="parameters">
<result-to-field result-name="contactMechId" field="parameters.contactMechId"/>
<result-to-result result-name="contactMechId"/>