From 17b8f4abb1d922522ffadc440f4b6e3660718874 Mon Sep 17 00:00:00 2001
From: Jason Etheridge <jason@esilibrary.com>
Date: Tue, 10 Apr 2012 13:15:09 -0400
Subject: [PATCH] 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>
---
 Open-ILS/xul/staff_client/chrome/content/util/list.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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,{});
-- 
2.11.0