From 62d6b44ada4b942cd7668bd0e1fcc7b50b1fe320 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 3 May 2014 18:32:34 +0000 Subject: [PATCH] Bug 11578: (follow-up) fix JavaScript error Fix error that can occur when using the DataTable filter to filter the table down to just one fund. Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt index 3ff18ce47d..3f5090118d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -160,7 +160,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") } var nTrs = $('#budgeth tbody tr'); - var iColspan = nTrs[1].getElementsByTagName('td').length; + var iColspan = nTrs[0].getElementsByTagName('td').length; var sLastGroup = ""; for ( var i=0 ; i