@@ -, +, @@
- Manage Batch and New Batch were missing the branch info
- Add link on patron search was missing batch id parameter
- Check branch is correctly shown on pages 'Manage Batch' and 'New Batch'
- Check you can create a new batch and add names to it by using the 'Add'
---
.../prog/en/modules/patroncards/members-search.tt | 2 +-
patroncards/edit-batch.pl | 2 +-
patroncards/manage.pl | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt
@@ -118,7 +118,7 @@ function add_item(borrowernum,batch_id,type_id){
[% resultsloo.branchcode %] |
[% resultsloo.dateexpiry %] |
[% resultsloo.borrowernotes %] |
- Add |
+ Add |
[% END %]
--- a/patroncards/edit-batch.pl
+++ a/patroncards/edit-batch.pl
@@ -60,7 +60,7 @@ my @item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
my @borrower_numbers = $cgi->param('borrower_number') if $cgi->param('borrower_number');
my $errstr = $cgi->param('error') || '';
-my $branch_code = get_branch_code_from_name($template->param('LoginBranchname'));
+my $branch_code = get_branch_code_from_name($template->{VARS}->{'LoginBranchname'});
if ($op eq 'remove') {
$batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);
--- a/patroncards/manage.pl
+++ a/patroncards/manage.pl
@@ -73,7 +73,7 @@ my $display_columns = { layout => [ # db column => {col label
};
my $errstr = ($cgi->param('error') ? $cgi->param('error') : '');
-my $branch_code = ($card_element eq 'batch' ? get_branch_code_from_name($template->param('LoginBranchname')) : '');
+my $branch_code = ($card_element eq 'batch' ? get_branch_code_from_name($template->{VARS}->{'LoginBranchname'}) : '');
if ($op eq 'delete') {
my $err = 0;
--