View | Details | Raw Unified | Return to bug 6415
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt (-1 / +1 lines)
Lines 118-124 function add_item(borrowernum,batch_id,type_id){ Link Here
118
    <td>[% resultsloo.branchcode %]</td>
118
    <td>[% resultsloo.branchcode %]</td>
119
    <td>[% resultsloo.dateexpiry %]</td>
119
    <td>[% resultsloo.dateexpiry %]</td>
120
    <td>[% resultsloo.borrowernotes %]</td>
120
    <td>[% resultsloo.borrowernotes %]</td>
121
    <td><a onclick="add_item('[% resultsloo.borrowernumber %]',[% resultsloo.batch_id %]); return false" href="/cgi-bin/koha/patroncards/edit-batch.pl?borrower_number=[% resultsloo.borrowernumber %]&amp;batch_id=[% resultsloo.batch_id %]&amp;op=add">Add</a></td>
121
    <td><a onclick="add_item('[% resultsloo.borrowernumber %]',[% batch_id %]); return false" href="/cgi-bin/koha/patroncards/edit-batch.pl?borrower_number=[% resultsloo.borrowernumber %]&amp;batch_id=[% batch_id %]&amp;op=add">Add</a></td>
122
    </tr>
122
    </tr>
123
    [% END %]
123
    [% END %]
124
    </table>
124
    </table>
(-)a/patroncards/edit-batch.pl (-1 / +1 lines)
Lines 60-66 my @item_numbers = $cgi->param('item_number') if $cgi->param('item_number'); Link Here
60
my @borrower_numbers = $cgi->param('borrower_number') if $cgi->param('borrower_number');
60
my @borrower_numbers = $cgi->param('borrower_number') if $cgi->param('borrower_number');
61
my $errstr = $cgi->param('error') || '';
61
my $errstr = $cgi->param('error') || '';
62
62
63
my $branch_code = get_branch_code_from_name($template->param('LoginBranchname'));
63
my $branch_code = get_branch_code_from_name($template->{VARS}->{'LoginBranchname'});
64
64
65
if ($op eq 'remove') {
65
if ($op eq 'remove') {
66
    $batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);
66
    $batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);
(-)a/patroncards/manage.pl (-2 / +1 lines)
Lines 73-79 my $display_columns = { layout => [ # db column => {col label Link Here
73
};
73
};
74
74
75
my $errstr = ($cgi->param('error') ? $cgi->param('error') : '');
75
my $errstr = ($cgi->param('error') ? $cgi->param('error') : '');
76
my $branch_code = ($card_element eq 'batch' ? get_branch_code_from_name($template->param('LoginBranchname')) : '');
76
my $branch_code = ($card_element eq 'batch' ? get_branch_code_from_name($template->{VARS}->{'LoginBranchname'}) : '');
77
77
78
if ($op eq 'delete') {
78
if ($op eq 'delete') {
79
    my $err = 0;
79
    my $err = 0;
80
- 

Return to bug 6415