Author: jonesde
Date: Fri Jan 12 01:23:25 2007
New Revision: 495523
URL:
http://svn.apache.org/viewvc?view=rev&rev=495523Log:
Fixed bug with getting default info for resource description; thanks to Ashish for reporting
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java?view=diff&rev=495523&r1=495522&r2=495523==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java Fri Jan 12 01:23:25 2007
@@ -763,9 +763,10 @@
ModelService thisService;
ModelService permission;
try {
- thisService = dctx.getModelService(dctx.getName());
+ thisService = dctx.getModelService(this.name);
permission = dctx.getModelService(this.permissionServiceName);
} catch (GenericServiceException e) {
+ Debug.logError(e, "Failed to get ModelService: " + e.toString(), module);
Map result = ServiceUtil.returnSuccess();
result.put("hasPermission", Boolean.FALSE);
result.put("failMessage", e.getMessage());