svn commit: r1834181 - in /ofbiz/ofbiz-framework/trunk/applications/party: config/PartyUiLabels.xml minilang/user/UserEvents.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1834181 - in /ofbiz/ofbiz-framework/trunk/applications/party: config/PartyUiLabels.xml minilang/user/UserEvents.xml

Arun Patidar-4
Author: arunpatidar
Date: Sat Jun 23 06:26:56 2018
New Revision: 1834181

URL: http://svn.apache.org/viewvc?rev=1834181&view=rev
Log:
FIXED:Incorrect succes mesage after creating customer.
(OFBIZ-9898)

Thanks Anushi Gupta for your contribution.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/party/config/PartyUiLabels.xml
    ofbiz/ofbiz-framework/trunk/applications/party/minilang/user/UserEvents.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/party/config/PartyUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/config/PartyUiLabels.xml?rev=1834181&r1=1834180&r2=1834181&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/party/config/PartyUiLabels.xml Sat Jun 23 06:26:56 2018
@@ -2052,6 +2052,9 @@
         <value xml:lang="th">โอกาสใหม่ที่สร้างเสร็จเรียบร้อยแล้ว</value>
         <value xml:lang="vi">Triển vọng Mới được tạo thành công.</value>
     </property>
+    <property key="CustomerCreatedSuccessfully">
+        <value xml:lang="en">Customer created successfully.</value>
+    </property>
     <property key="PageTitleAddPartyContent">
         <value xml:lang="ar">إضافة محتوى للطرف</value>
         <value xml:lang="de">Akteur Inhalt hinzufügen</value>

Modified: ofbiz/ofbiz-framework/trunk/applications/party/minilang/user/UserEvents.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/minilang/user/UserEvents.xml?rev=1834181&r1=1834180&r2=1834181&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/party/minilang/user/UserEvents.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/party/minilang/user/UserEvents.xml Sat Jun 23 06:26:56 2018
@@ -28,6 +28,8 @@ under the License.
         <set field="create_allow_password" value="true"/>
         <set field="parameters.roleTypeId" value="CUSTOMER"/>
         <call-simple-method method-name="createUser"/>
+        <property-to-field field="successMessage" resource="PartyUiLabels" property="CustomerCreatedSuccessfully"/>
+        <set field="_event_message_" value="${successMessage}" />
     </simple-method>
     <simple-method method-name="createProspect" short-description="Create Prospect" login-required="false">
         <set field="require_email" value="true"/>
@@ -41,6 +43,8 @@ under the License.
         <now-timestamp field="nowStamp"/>
         <set field="parameters.roleTypeId" value="PROSPECT"/>
         <call-simple-method method-name="createUser"/>
+        <property-to-field field="newProspectMessage" resource="PartyUiLabels" property="NewProspect"/>
+        <set field="_event_message_" value="${newProspectMessage}" />
     </simple-method>
 
     <simple-method method-name="createEmployee" short-description="Create Employee" login-required="false">
@@ -434,8 +438,6 @@ under the License.
         <set field="emailContext.productStoreId" from-field="parameters.PRODUCT_STORE_ID"/>
         <set-service-fields service-name="sendCreatePartyEmailNotification" map="emailContext" to-map="serviceInMap"/>
         <call-service-asynch service-name="sendCreatePartyEmailNotification" in-map-name="serviceInMap"/>
-        <property-to-field field="newProspectMessage" resource="PartyUiLabels" property="NewProspect"/>
-        <set field="_event_message_" value="${newProspectMessage}" />
     </simple-method>
 
 </simple-methods>