From: pines Date: Sun, 3 Sep 2006 06:58:15 +0000 (+0000) Subject: return the new barcode on Replace Barcode so Copy Status can resubmit it X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a86059b1c42648aefbc59765cbac47bc34515d58;p=Evergreen.git return the new barcode on Replace Barcode so Copy Status can resubmit it git-svn-id: svn://svn.open-ils.org/ILS/trunk@5884 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js index a0b009d466..a93d2b72bc 100644 --- a/Open-ILS/xul/staff_client/server/cat/util.js +++ b/Open-ILS/xul/staff_client/server/cat/util.js @@ -36,6 +36,7 @@ cat.util.replace_barcode = function(old_bc) { copy.barcode(new_bc); copy.ischanged('1'); var r = network.simple_request('FM_ACP_FLESHED_BATCH_UPDATE', [ ses(), [ copy ] ]); if (typeof r.ilsevent != 'undefined') { if (r.ilsevent != 0) throw(r); } + return new_bc; } catch(E) { JSAN.use('util.error'); var error = new util.error(); error.standard_unexpected_error_alert('Rename did not likely occur.',E);