Skip to content

Commit

Permalink
SAK-41847 Use tool ordered list of page items ... (sakaiproject#7151)
Browse files Browse the repository at this point in the history
... when working out pre-requisites

https://jira.sakaiproject.org/browse/SAK-41847
  • Loading branch information
adrianfish authored Jul 24, 2019
1 parent 3f8ed66 commit a661d80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,9 @@ public List<SimplePage> getTopLevelPages(final String siteId) {

}

/**
* Gets the top level page items, ordered to correspond with the top level lessons tools
*/
public List<SimplePageItem> getOrderedTopLevelPageItems(String siteId) {

// The unordered top level items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public boolean isPageAccessible(long pageId, String siteId, String currentUserId

simplePageBean = makeSimplePageBean(simplePageBean, siteId, currentPage);

List<SimplePageItem> items = dao.findItemsInSite(siteId);
List<SimplePageItem> items = dao.getOrderedTopLevelPageItems(siteId);
// sorted by SQL

boolean ok = true;
Expand Down

0 comments on commit a661d80

Please sign in to comment.