Skip to content

Commit

Permalink
SAK-40604 Update ShowPageProducer.java, show-page.js (sakaiproject#6221)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinmarques authored and ern committed Nov 6, 2018
1 parent ac32328 commit c391d1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,8 +1084,17 @@ public int compare(SimpleStudentPage o1, SimpleStudentPage o2) {
} catch (Exception e) {}
}

List<SimplePageItem> itemList = null;

// items to show
List<SimplePageItem> itemList = (List<SimplePageItem>) simplePageBean.getItemsOnPage(currentPage.getPageId());
if(httpServletRequest.getParameter("printall") != null && currentPage.getTopParent() != null)
{
itemList = (List<SimplePageItem>) simplePageBean.getItemsOnPage(currentPage.getTopParent());
}
else
{
itemList = (List<SimplePageItem>) simplePageBean.getItemsOnPage(currentPage.getPageId());
}

// Move all items with sequence <= 0 to the end of the list.
// Count is necessary to guarantee we don't infinite loop over a
Expand Down
4 changes: 4 additions & 0 deletions lessonbuilder/tool/src/webapp/js/show-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,11 @@ function printViewWithParameter(url) {
var j = url.indexOf("/tool/");
if (j < 0)
return url;
var z = url.indexOf("ShowPage");
if (z < 0)
return url.substring(0, i) + url.substring(j) + '?printall=true';
else
return url.substring(0, i) + url.substring(j) + '&printall=true';
}

// make columns in a section the same height. Is there a better place to trigger this?
Expand Down

0 comments on commit c391d1c

Please sign in to comment.