svn commit: r647417 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestManager.java

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

svn commit: r647417 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestManager.java

jleroux@apache.org
Author: jleroux
Date: Sat Apr 12 03:31:52 2008
New Revision: 647417

URL: http://svn.apache.org/viewvc?rev=647417&view=rev
Log:
From a Yin T's suggestion "Remove hardcoded value" in (https://issues.apache.org/jira/browse/OFBIZ-1743) - OFBIZ-1743

Modified:
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestManager.java

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestManager.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestManager.java?rev=647417&r1=647416&r2=647417&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestManager.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestManager.java Sat Apr 12 03:31:52 2008
@@ -69,7 +69,7 @@
         Map map = getHandlerMap();
         Map hMap;
 
-        if (type == 1) {
+        if (type == RequestManager.VIEW_HANDLER_KEY) {
             hMap = (Map) map.get("view");
         } else {
             hMap = (Map) map.get("event");
@@ -86,7 +86,7 @@
         Map map = getHandlerMap();
         Map hMap;
 
-        if (type == 1) {
+        if (type == RequestManager.VIEW_HANDLER_KEY) {
             hMap = (Map) map.get("view");
         } else {
             hMap = (Map) map.get("event");