From 10c7d2711095781f088c7f44e0d59ea9f41f528f Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 22 Feb 2010 20:20:23 +0000 Subject: [PATCH] Acq: Fix sorting bug in rev 15614 when use_count >= 10 git-svn-id: svn://svn.open-ils.org/ILS/trunk@15616 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 3 ++- 1 file changed, 2 insertions(+), 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 322d97006d..015d867f44 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 @@ -772,9 +772,10 @@ function AcqLiTable() { this._labelFormulasWithCounts = function(store_data) { for (var key in store_data.items) { var obj = store_data.items[key]; + obj.use_count = Number(obj.use_count); /* needed for sorting */ if (this.dfaCache[obj.id]) - obj.use_count = Number(obj.use_count) + this.dfaCache[obj.id]; + obj.use_count = obj.use_count + Number(this.dfaCache[obj.id]); obj.dynLabel = "[" + obj.use_count + "]  " + obj.name; -- 2.11.0