From 1fdebcb296788b7c95f5644fa5712ba644448b8c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Sep 2011 10:12:27 -0400 Subject: [PATCH] Fix for Bug 6842 - Branch transfer limits broken - Changing library select form so that chosen library is preselected - Changing pager
to a

so that nested form tags don't conflict. It was the addition of the javascript table pager which broke the functionality on this page. Signed-off-by: Katrin Fischer - It's possible to select a different library now. The pull down shows the chosen library correctly. - I can make changes and save them without any problems. Signed-off-by: Ian Walls Signed-off-by: Chris Cormack (cherry picked from commit 377f174b0674b009945036c3ac3724378e12e9c5) Signed-off-by: Chris Nighswonger --- admin/branch_transfer_limits.pl | 1 + .../prog/en/modules/admin/branch_transfer_limits.tt | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/admin/branch_transfer_limits.pl b/admin/branch_transfer_limits.pl index abba127476..8c6f42e419 100755 --- a/admin/branch_transfer_limits.pl +++ b/admin/branch_transfer_limits.pl @@ -58,6 +58,7 @@ my @branch_loop; for my $thisbranch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) { my %row =(value => $thisbranch, branchname => $branches->{$thisbranch}->{'branchname'}, + selected => $thisbranch eq $branchcode ? 1 : 0, ); push @branch_loop, \%row; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt index 5bb5185563..2b007bf9f5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt @@ -71,7 +71,11 @@ @@ -99,8 +103,8 @@ }).tablesorterPager({container: $("#pager[% codes_loo.code %]table"),positionFixed: false,size: 10}); }); - -  page(s) : +

+

 page(s) : @@ -115,8 +119,8 @@ -

- +

+
-- 2.39.5