Skip to content

Commit

Permalink
Issue 11567 filter structures by base type (#11570)
Browse files Browse the repository at this point in the history
* #11457 fixed

* fixes #11567

(cherry picked from commit 95a8280)
  • Loading branch information
wezell authored and jgambarios committed May 17, 2017
1 parent f403535 commit 6a2249e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.List;
import java.util.Map;

import com.dotcms.contenttype.model.type.BaseContentType;
import com.dotcms.contenttype.model.type.ContentType;
import com.dotcms.contenttype.transform.contenttype.StructureTransformer;
import com.dotmarketing.beans.Inode;
Expand Down Expand Up @@ -147,8 +148,8 @@ public static List<Template> findTemplatesForLimitedUser(String searchString, St
*/
public static List<Structure> findStructuresForLimitedUser(String searchString, Integer structureType ,String dbColSort ,int offset,
int limit,int permission, User user, boolean respectFrontEndPermissions) throws DotDataException, DotSecurityException{

List<ContentType> listContentTypes = APILocator.getContentTypeAPI(user).search(searchString, dbColSort, limit, offset);
BaseContentType baseType = BaseContentType.getBaseContentType(structureType);
List<ContentType> listContentTypes = APILocator.getContentTypeAPI(user).search(searchString,baseType, dbColSort, limit, offset);
return new StructureTransformer(listContentTypes).asStructureList();
}

Expand Down

0 comments on commit 6a2249e

Please sign in to comment.