Iterate the correct list.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686668 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adam Heath
2008-08-18 02:37:10 +00:00
parent 94591ccc4d
commit 5bc7e67662
@@ -1190,7 +1190,7 @@ Debug.logInfo("updateSiteRoles, serviceContext(2):" + serviceContext, module);
kidContent.put("contentTypeId", "PAGE_NODE");
kidContent.store();
List kids2 = ContentWorker.getAssociatedContent(kidContent, "from", UtilMisc.toList("SUB_CONTENT"), null, null, null);
Iterator iter2 = kids.iterator();
Iterator iter2 = kids2.iterator();
while (iter2.hasNext()) {
GenericValue kidContent2 = (GenericValue)iter2.next();
updatePageNodeChildren(kidContent2, context);