stop nasty error when cancelling a Claim Return action
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Feb 2010 21:20:27 +0000 (21:20 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Feb 2010 21:20:27 +0000 (21:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15618 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/items.js

index 3b07cd9..262a511 100644 (file)
@@ -560,9 +560,9 @@ patron.items.prototype = {
                         }
                     }
                 }
-            }
-            for (var i = 0; i < retrieve_ids.length; i++) {
-                obj.refresh(retrieve_ids[i].circ_id, !do_not_move_these[ retrieve_ids[i].barcode ]);
+                for (var i = 0; i < retrieve_ids.length; i++) {
+                    obj.refresh(retrieve_ids[i].circ_id, !do_not_move_these[ retrieve_ids[i].barcode ]);
+                }
             }
         } catch(E) {
             obj.error.standard_unexpected_error_alert($("patronStrings").getString('staff.patron.items.items_claimed_returned.not_marked_claimed_returned'),E);