You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2008/01/25 00:51:47 UTC

svn commit: r615083 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

Author: adrianc
Date: Thu Jan 24 15:51:42 2008
New Revision: 615083

URL: http://svn.apache.org/viewvc?rev=615083&view=rev
Log:
Small enhancement to Webtools entity reference page - eliminated ofbiz home path from entity location.

Modified:
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java?rev=615083&r1=615082&r2=615083&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java Thu Jan 24 15:51:42 2008
@@ -762,7 +762,9 @@
                         entityMap.put("plainTableName", entity.getPlainTableName());
                         entityMap.put("title", entity.getTitle());
                         entityMap.put("description", entity.getDescription());
-                        entityMap.put("location", entity.getLocation());
+                        String entityLocation = entity.getLocation();
+                        entityLocation = entityLocation.replaceFirst(System.getProperty("ofbiz.home") + "/", "");
+                        entityMap.put("location", entityLocation);
                         entityMap.put("javaNameList", javaNameList);
                         entityMap.put("relationsList", relationsList);
                         entityMap.put("indexList", indexList);