From 29d2f40e84ec99c8bbf0bb3cbbf748d0dc68d7fb Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Fri, 13 Feb 2009 07:38:18 +0000 Subject: [PATCH] Fixed issue reported by Hans Bakker which shows up in the strange situation for the content/views/Xxx URLs because they chain to a request with no event, and that was causing the overrideViewUrl to not get set to be picked up later when it is time to render the view; that is now fixed and the WebSite -> CMS tab is working again in the Content Manager git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744020 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/webapp/control/RequestHandler.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java index 7e4a199cfd..fabaf558c4 100644 --- a/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java +++ b/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java @@ -423,11 +423,10 @@ public class RequestHandler implements Serializable { } ConfigXMLReader.RequestResponse successResponse = requestMap.requestResponseMap.get("success"); - if ("success".equals(eventReturn) && successResponse != null && "request".equals(successResponse.type)) { + if ((eventReturn == null || "success".equals(eventReturn)) && successResponse != null && "request".equals(successResponse.type)) { // chains will override any url defined views; but we will save the view for the very end - if (nextRequestResponse != null) { - // NOTE: possible issue if nextRequestResponse.type != view - request.setAttribute("_POST_CHAIN_VIEW_", nextRequestResponse.value); + if (UtilValidate.isNotEmpty(overrideViewUri)) { + request.setAttribute("_POST_CHAIN_VIEW_", overrideViewUri); } nextRequestResponse = successResponse; }