From ad4932e60bdf49e57fd345cf8af2e78b4ee44783 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 20 Nov 2015 12:14:28 -0500 Subject: [PATCH] RT86744 Avoid PO refresh in picklist Avoid calling a PO-only function (refreshPOSummaryAmounts()) in a picklist-only context. Otherwise, code dies and leaves the button for modifying copies disabled. Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 77084dacf3..e30675ba25 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -3015,9 +3015,9 @@ function AcqLiTable() { oncomplete: function() { self.drawCopies(liId, true /* force_fetch */); openils.Util.hide("acq-lit-update-copies-progress"); - refreshPOSummaryAmounts(); self._savingCopiesInFlight = false; acqLitSaveCopies.attr('disabled', false); + if (self.isPO) refreshPOSummaryAmounts(); } } ); -- 2.11.0