Author: mrisaliti
Date: Sat Jan 29 20:30:45 2011
New Revision: 1065101
URL:
http://svn.apache.org/viewvc?rev=1065101&view=revLog:
It's necessary to use caContentId instead of caContentIdTo to search in ContentAssocViewFrom entity by forumId
Modified:
ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/MostRecentPrep.groovy
Modified: ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/MostRecentPrep.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/MostRecentPrep.groovy?rev=1065101&r1=1065100&r2=1065101&view=diff==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/MostRecentPrep.groovy (original)
+++ ofbiz/trunk/applications/content/webapp/content/WEB-INF/actions/cms/MostRecentPrep.groovy Sat Jan 29 20:30:45 2011
@@ -35,7 +35,7 @@ if (forumId) {
exprList.add(thruExpr2);
statusIdExpr = EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CTNT_IN_PROGRESS");
exprList.add(statusIdExpr);
- contentIdToExpr = EntityCondition.makeCondition("caContentIdTo", EntityOperator.EQUALS, forumId);
+ contentIdToExpr = EntityCondition.makeCondition("caContentId", EntityOperator.EQUALS, forumId);
exprList.add(contentIdToExpr);
expr = EntityCondition.makeCondition(exprList, EntityOperator.AND);
entityList = delegator.findList("ContentAssocViewFrom", expr, null, ['-caFromDate'], null, false);