Skip to content

Commit

Permalink
LSNBLDR-654; adding multiple files at bottom doesn't work (sakaiproje…
Browse files Browse the repository at this point in the history
  • Loading branch information
clhedrick authored Jun 14, 2016
1 parent 811eb75 commit 010c8ee
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1534,14 +1534,15 @@ private SimplePageItem appendItem(String id, String name, int type) {
List<SimplePageItem> items = getItemsOnPage(getCurrentPageId());
// ideally the following should be the same, but there can be odd cases. So be safe
long before = 0;
String beforeStr = addBefore;
boolean addAfter = false;
if (addBefore != null && addBefore.startsWith("-")) {
if (beforeStr != null && beforeStr.startsWith("-")) {
addAfter = true;
addBefore = addBefore.substring(1);
beforeStr = beforeStr.substring(1);
}
if (addBefore != null && !addBefore.equals("")) {
if (beforeStr != null && !beforeStr.equals("")) {
try {
before = Long.parseLong(addBefore);
before = Long.parseLong(beforeStr);
} catch (Exception e) {
// nothing. ignore bad arg
}
Expand Down

0 comments on commit 010c8ee

Please sign in to comment.