svn commit: r654587 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java

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

svn commit: r654587 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java

adrianc
Author: adrianc
Date: Thu May  8 10:43:53 2008
New Revision: 654587

URL: http://svn.apache.org/viewvc?rev=654587&view=rev
Log:
Small improvement to PreferenceServices.java.

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java?rev=654587&r1=654586&r2=654587&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java Thu May  8 10:43:53 2008
@@ -90,6 +90,13 @@
 
         Map<String, Object> result = ServiceUtil.returnSuccess();
         result.put("userPrefMap", userPrefMap);
+        if (userPrefMap != null) {
+            // Put the value in the result Map too, makes access easier for calling methods.
+            Object userPrefValue = userPrefMap.get(userPrefTypeId);
+            if (userPrefValue != null) {
+                result.put("userPrefValue", userPrefValue);
+            }
+        }
         return result;
     }