// KCLS: used for tracking selected lineitems that are
// not visibible in the current page of lineitems.
// Stores a JSON hash of lineitem ID's
-var checkBoxStorage = openils.XUL.localStorage();
+var checkBoxStorage;
+if (openils.XUL.localStorage) {
+ checkBoxStorage = openils.XUL.localStorage();
+} else {
+ // use browser localStorage outside of the XUL interface.
+ checkBoxStorage = localStorage;
+}
if (window.location.toString().indexOf('picklist/view/') < 0) {
// only tracking selection of multiple pages of
var containerRow = dojo.byId('acq-inline-copies-row-' + liId);
var liRow = dojo.query('[li=' + liId + ']')[0];
+ // KCLS JBAS-673 / Alternate fix for LP#1208613
+ // liCache contains lineitems from multiple pages. If liRow
+ // is null, it's from a different page. Avoid any attempts to
+ // draw its copy details (since they won't be visible).
+ if (!liRow) return;
+
if (!containerRow) {
// build the inline copies container row and add it to