Author: adrianc
Date: Thu May 8 10:43:53 2008
New Revision: 654587
URL:
http://svn.apache.org/viewvc?rev=654587&view=revLog:
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;
}