From f1561dc97a6c3571272cde37ef6fade2bbbceb28 Mon Sep 17 00:00:00 2001
From: Jesse Weaver <pianohacker@gmail.com>
Date: Fri, 4 Dec 2015 15:10:49 -0700
Subject: [PATCH] Bug 19265: Rancor - Fix sorting issue on manage batch page

Adjust for extra column

To test:
1 - Manage a stage batch
2 - Note records are correctly sorted by id
---
 tools/batch_records_ajax.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/batch_records_ajax.pl b/tools/batch_records_ajax.pl
index c8c6198..a271ba2 100755
--- a/tools/batch_records_ajax.pl
+++ b/tools/batch_records_ajax.pl
@@ -41,8 +41,9 @@ use C4::ImportBatch;
 
 my $input = new CGI;
 
+# Nothing sane can be done if asked to sort by the checkbox column, so we use the ID.
 my @sort_columns =
-  qw/import_record_id title status overlay_status overlay_status/;
+  qw/import_record_id import_record_id title status overlay_status overlay_status/;
 
 my $import_batch_id   = $input->param('import_batch_id');
 my $offset            = $input->param('iDisplayStart');
-- 
2.7.4