You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2009/08/06 17:52:52 UTC

svn commit: r801686 - in /ofbiz/trunk/applications/order: servicedef/services.xml src/org/ofbiz/order/order/OrderServices.java

Author: mor
Date: Thu Aug  6 15:52:52 2009
New Revision: 801686

URL: http://svn.apache.org/viewvc?rev=801686&view=rev
Log:
Added noteName attribute in service definition of createOrderNote. Applied patch from Arun Patidar, part of OFBIZ-2802 (https://issues.apache.org/jira/browse/OFBIZ-2802)

Modified:
    ofbiz/trunk/applications/order/servicedef/services.xml
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

Modified: ofbiz/trunk/applications/order/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services.xml?rev=801686&r1=801685&r2=801686&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/services.xml Thu Aug  6 15:52:52 2009
@@ -441,6 +441,7 @@
         <attribute name="orderId" type="String" mode="IN"/>
         <attribute name="note" type="String" mode="IN"/>
         <attribute name="internalNote" type="String" mode="IN"/>
+        <attribute name="noteName" type="String" mode="IN" optional="true"/>
     </service>
 
     <service name="updateOrderNote" engine="simple" default-entity-name="OrderHeaderNote"

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java?rev=801686&r1=801685&r2=801686&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java Thu Aug  6 15:52:52 2009
@@ -2699,9 +2699,10 @@
         LocalDispatcher dispatcher = dctx.getDispatcher();
         GenericValue userLogin = (GenericValue) context.get("userLogin");
         String noteString = (String) context.get("note");
+        String noteName = (String) context.get("noteName");
         String orderId = (String) context.get("orderId");
         String internalNote = (String) context.get("internalNote");
-        Map noteCtx = UtilMisc.toMap("note", noteString, "userLogin", userLogin);
+        Map noteCtx = UtilMisc.toMap("note", noteString, "userLogin", userLogin, "noteName", noteName);
         Locale locale = (Locale) context.get("locale");
 
         try {