Author: hoang_to
Date: 2009-11-26 06:38:50 -0500 (Thu, 26 Nov 2009)
New Revision: 811
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/SearchTask.java
Log:
GTNPORTAL-295: Duplicated portal name when create many portals
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/SearchTask.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/SearchTask.java 2009-11-26
11:10:15 UTC (rev 810)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/SearchTask.java 2009-11-26
11:38:50 UTC (rev 811)
@@ -222,11 +222,12 @@
String ownerType = q.getOwnerType();
ObjectType<Site> siteType = ownerType == null ? ObjectType.PORTAL_SITE :
Mapper.parseSiteType(ownerType);
final Collection<? extends Site> portals = workspace.getSites(siteType);
+ final Iterator<? extends Site> iterator = portals.iterator();
ListAccess<PortalData> la = new ListAccess<PortalData>()
{
public PortalData[] load(int index, int length) throws Exception,
IllegalArgumentException
{
- Iterator<? extends Site> iterator = portals.iterator();
+ //Iterator<? extends Site> iterator = portals.iterator();
Mapper mapper = new Mapper(session);
PortalData[] result = new PortalData[length];
for (int i = 0; i < length; i++)
Show replies by date