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
This commit is contained in:
David E. Jones
2009-02-13 07:38:18 +00:00
parent 8c3bf300e4
commit 29d2f40e84
@@ -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;
}