From: Jason Etheridge <jason@esilibrary.com> Date: Tue, 10 Apr 2012 17:15:09 +0000 (-0400) Subject: fix sort bug introduced with multi-sort X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=17b8f4abb1d922522ffadc440f4b6e3660718874;p=evergreen%2Fmasslnc.git fix sort bug introduced with multi-sort The bug happens on columns without a defined sort_value Signed-off-by: Jason Etheridge <jason@esilibrary.com> Signed-off-by: Thomas Berezansky <tsbere@mvlc.org> --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index b35c2891fa..61d48534bb 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -1749,8 +1749,8 @@ util.list.prototype = { } else { a = a.value; b = b.value; - if (obj.columns[p].getAttribute('sort_type')) { - switch(obj.columns[p].getAttribute('sort_type')) { + if (obj.columns[p].sort_type) { + switch(obj.columns[p].sort_type) { case 'date' : JSAN.use('util.date'); // to pull in dojo.date.locale a = dojo.date.locale.parse(a,{});