From 8c961dcf893b975b20bcf1db4a1afd95d0f37df5 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Mon, 14 May 2012 14:50:43 -0400 Subject: [PATCH] Copy Location Order Editor: avoid interface failure with blank area Symptom is "ll is undefined" at line 65 of previous version of this file. Reported by George Duimovich and John Jones. Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Ben Shum --- .../default/conify/global/asset/copy_location_order.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/conify/global/asset/copy_location_order.js b/Open-ILS/web/js/ui/default/conify/global/asset/copy_location_order.js index 5032b34f66..e11f34fbfb 100644 --- a/Open-ILS/web/js/ui/default/conify/global/asset/copy_location_order.js +++ b/Open-ILS/web/js/ui/default/conify/global/asset/copy_location_order.js @@ -51,10 +51,13 @@ function filterGrid(org) { var locs = []; // sort and append by existing order settings - dojo.forEach(orders, + dojo.forEach( + orders, function(order) { - locs.push( - locations.filter(function(l) {return l.id() == order.location()})[0] + locs = locs.concat( + locations.filter( + function(l) { return l.id() == order.location(); } + ) ); } ); -- 2.43.2