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:05:28 UTC

svn commit: r1642409 - in /ofbiz/trunk/applications/party: config/PartyUiLabels.xml script/org/ofbiz/party/contact/PartyContactMechServices.xml

Author: ashish
Date: Sat Nov 29 10:05:28 2014
New Revision: 1642409

URL: http://svn.apache.org/r1642409
Log:
Applied bug fix from jira issue OFBIZ-5877 - Add new address not workign on manage address screen.
Thanks Rishi for the contribution. 

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

Modified: ofbiz/trunk/applications/party/config/PartyUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/config/PartyUiLabels.xml?rev=1642409&r1=1642408&r2=1642409&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/trunk/applications/party/config/PartyUiLabels.xml Sat Nov 29 10:05:28 2014
@@ -11071,6 +11071,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/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=1642409&r1=1642408&r2=1642409&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 Sat Nov 29 10:05:28 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"/>