Author: hansbak
Date: Wed Oct 11 19:15:47 2006
New Revision: 463110

URL: http://svn.apache.org/viewvc?view=rev&rev=463110
Log:
added the userLogin to the preparefind service call

Modified:
    
incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java

Modified: 
incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java?view=diff&rev=463110&r1=463109&r2=463110
==============================================================================
--- 
incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java 
(original)
+++ 
incubator/ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java 
Wed Oct 11 19:15:47 2006
@@ -394,6 +394,7 @@
         String orderBy = (String) context.get("orderBy");
         Map inputFields = (Map) context.get("inputFields"); // Input
         String noConditionFind = (String) context.get("noConditionFind");
+        GenericValue userLogin = (GenericValue) context.get("userLogin"); 
         if (UtilValidate.isEmpty(noConditionFind)) {
             // try finding in inputFields Map
             noConditionFind = (String) inputFields.get("noConditionFind");
@@ -408,7 +409,7 @@
 
         Map prepareResult = null;
         try {
-            prepareResult = dispatcher.runSync("prepareFind", 
UtilMisc.toMap("entityName", entityName, "orderBy", orderBy, "inputFields", 
inputFields, "filterByDate", filterByDate));
+            prepareResult = dispatcher.runSync("prepareFind", 
UtilMisc.toMap("entityName", entityName, "orderBy", orderBy, "inputFields", 
inputFields, "filterByDate", filterByDate, "userLogin", userLogin));
         } catch (GenericServiceException gse) {
             return ServiceUtil.returnError("Error preparing conditions: " + 
gse.getMessage());
         }


Reply via email to