Bug 11171: (follow-up) fix a javascript error
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 25 Nov 2013 08:35:28 +0000 (09:35 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 27 Nov 2013 18:02:38 +0000 (18:02 +0000)
The previous patch adds an error on booksellers.pl:

TypeError: a.aoColumns[c] is undefined

It was caused by the add of the new column. The aoColumns DT parameter
should manage it.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt

index 5ee7352..3fa12e2 100644 (file)
@@ -19,7 +19,7 @@ $(document).ready(function() {
         'bInfo': false,
         "aaSorting": [[ 1, "asc" ]],
         "aoColumns": [
-            null,null,null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },null
+            null,null,null,null,null,null,{ "sType": "title-string" },null,{ "sType": "title-string" },null
         ],
         'aoColumnDefs': [
             { 'aTargets': [-1], 'bSortable': false }