Author: bibryam
Date: Sat Nov 14 15:42:26 2009
New Revision: 836192
URL:
http://svn.apache.org/viewvc?rev=836192&view=revLog:
Fix for the issue reported in
https://issues.apache.org/jira/browse/OFBIZ-3196Set also the result from services invoked by multi-service w/o a suffix.
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java?rev=836192&r1=836191&r2=836192&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java Sat Nov 14 15:42:26 2009
@@ -355,7 +355,9 @@
if (resultKey != null && !ModelService.RESPONSE_MESSAGE.equals(resultKey) && !ModelService.ERROR_MESSAGE.equals(resultKey) &&
!ModelService.ERROR_MESSAGE_LIST.equals(resultKey) && !ModelService.ERROR_MESSAGE_MAP.equals(resultKey) &&
!ModelService.SUCCESS_MESSAGE.equals(resultKey) && !ModelService.SUCCESS_MESSAGE_LIST.equals(resultKey)) {
+ //set the result to request w/ and w/o a suffix to handle both cases: to have the result in each iteration and to prevent its overriding
request.setAttribute(resultKey + curSuffix, resultValue);
+ request.setAttribute(resultKey, resultValue);
}
}
}