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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-13 / +31 lines)
Lines 64-77 Link Here
64
                }
64
                }
65
            };
65
            };
66
            function Add() {
66
            function Add() {
67
                var barcodes = document.getElementById("barcode");
67
                var number_list = document.getElementById("number_list");
68
                if (barcodes.value == '') {
68
                if (number_list.value == '') {
69
                    window.open("/cgi-bin/koha/labels/label-item-search.pl?batch_id=[% batch_id %]&type=labels",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes');
69
                    window.open("/cgi-bin/koha/labels/label-item-search.pl?batch_id=[% batch_id %]&type=labels",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes');
70
                }
70
                }
71
                else {
71
                else {
72
                    document.forms["add_by_barcode"].submit();
72
                    document.forms["add_by_number"].submit();
73
                }
73
                }
74
            };
74
            };
75
76
            function add_item(item_number) {
77
                $("#itemnum_enter").prop("checked",true);
78
                $("#number_list").val($("#number_list").val()+item_number+"\r\n");
79
            };
80
75
            function DeDuplicate() {
81
            function DeDuplicate() {
76
                window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=de_duplicate&batch_id=[% batch_id %]";
82
                window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=de_duplicate&batch_id=[% batch_id %]";
77
            };
83
            };
Lines 168-174 Link Here
168
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
174
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
169
        <a href="/cgi-bin/koha/labels/label-home.pl">Labels home</a> &rsaquo;
175
        <a href="/cgi-bin/koha/labels/label-home.pl">Labels home</a> &rsaquo;
170
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Manage label batches</a> &rsaquo;
176
        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Manage label batches</a> &rsaquo;
171
        Manage batch number [% batch_id %]
177
        [% IF batch_id %]
178
            Manage batch number [% batch_id %]
179
        [% ELSE %]
180
            Create new batch
181
        [% END %]
172
    </div>
182
    </div>
173
    <div id="doc3" class="yui-t2">
183
    <div id="doc3" class="yui-t2">
174
        <div id="bd">
184
        <div id="bd">
Lines 195-211 Link Here
195
205
196
                        <div id="manage-label-batches">
206
                        <div id="manage-label-batches">
197
                            <div class="hint">Current library: [% LoginBranchname %]</div>
207
                            <div class="hint">Current library: [% LoginBranchname %]</div>
198
                            <form name="add_by_barcode" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
208
                            <form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
199
                                <div>
209
                                <div>
200
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
210
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
201
                                    <ol><li>
211
                                    <ol><li>
202
                                    <input type="hidden" name="op" value="add" />
212
                                        <input type="hidden" name="op" value="add" />
203
                                    <input type="hidden" name="batch_id" value="[% batch_id %]" />
213
                                        <input type="hidden" name="batch_id" value="[% batch_id %]" />
204
                                    <label for="barcode">Add by barcode(s):
214
                                    </li>
205
                                        <br /> <span class="hint">One barcode per line.</span>
215
                                    <li>
206
                                        <br /> <span class="hint">Leave empty to add via item search.</span>
216
                                        <input type="radio" name="number_type" id="barcode_enter" value="barcode" checked />
207
                                    </label>
217
                                        <label for="barcode_enter">Enter by barcode</label><br/>
208
                                    <textarea rows="5" id="barcode" name="barcode" tabindex="1" class="focus"></textarea>
218
                                        <input type="radio" name="number_type" id="itemnum_enter" value="itemnumber" />
219
                                        <label for="itemnum_enter">Enter by itemnumber</label>
220
                                    </li>
221
                                    <li>
222
                                        <label for="number_list">Add by barcode(s) or itemnumbers(s):
223
                                            <br /> <span class="hint">One number per line.</span>
224
                                            <br /> <span class="hint">Leave empty to add via item search (itemnunber).</span>
225
                                        </label>
226
                                        <textarea rows="5" id="number_list" name="number_list" tabindex="1" class="focus"></textarea>
209
                                    </li></ol>
227
                                    </li></ol>
210
                                    </fieldset>
228
                                    </fieldset>
211
                                </div>
229
                                </div>
Lines 263-269 Link Here
263
                                <ol><li>
281
                                <ol><li>
264
                                    <div class="dialog message">
282
                                    <div class="dialog message">
265
                                        <h4>There are no items in this batch yet</h4>
283
                                        <h4>There are no items in this batch yet</h4>
266
                                        <p>Add items by barcode using the text area above or leave empty to add via item search.</p>
284
                                        <p>Add items by using the text area above or leave empty to add via item search.</p>
267
                                    </div>
285
                                    </div>
268
                                </li></ol>
286
                                </li></ol>
269
                                </fieldset>
287
                                </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-9 / +4 lines)
Lines 16-42 Link Here
16
                });
16
                });
17
            });
17
            });
18
            function add_item(item_number,batch_id,type_id){
18
            function add_item(item_number,batch_id,type_id){
19
                var getstr='';
19
                var p = window.opener;
20
                if (item_number == 'checked') {
20
                if (item_number == 'checked') {
21
                    items= new Array;
21
                    items= new Array;
22
                    if(document.resultform.action.length > 0) {
22
                    if(document.resultform.action.length > 0) {
23
                        for (var i=0; i < document.resultform.action.length; i++) {
23
                        for (var i=0; i < document.resultform.action.length; i++) {
24
                            if (document.resultform.action[i].checked) {
24
                            if (document.resultform.action[i].checked) {
25
                                items.push("item_number=" +  document.resultform.action[i].value);
25
                                p.add_item(document.resultform.action[i].value);
26
                            }
26
                            }
27
                        }
27
                        }
28
                        getstr = items.join("&");
29
                    } else {
28
                    } else {
30
                        getstr = "item_number="+document.resultform.action.value;
29
                        p.add_item(document.resultform.action.value);
31
                    }
30
                    }
32
                }
31
                }
33
                else {
32
                else {
34
                    getstr = "item_number="+item_number;
33
                    p.add_item(item_number);
35
                }
34
                }
36
                var myurl = "label-edit-batch.pl?op=add&batch_id="+batch_id+
37
                "&"+getstr;
38
                window.opener.location.href = myurl;
39
                //top.location.href=myurl;
40
            }
35
            }
41
            //]]>
36
            //]]>
42
    </script>
37
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-4 / +38 lines)
Lines 47-54 Link Here
47
                }
47
                }
48
            };
48
            };
49
            function Add() {
49
            function Add() {
50
                var bor_nums = document.getElementById("bor_num_list");
51
                if (bor_nums.value == '') {
50
                window.open("/cgi-bin/koha/patroncards/members-search.pl?batch_id=[% batch_id %]",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes');
52
                window.open("/cgi-bin/koha/patroncards/members-search.pl?batch_id=[% batch_id %]",'FindABibIndex','width=875,height=400,toolbar=no,scrollbars=yes');
53
                }
54
                else {
55
                    document.forms["add_by_bor_num"].submit();
56
                }
51
            };
57
            };
58
59
            function add_user(borrowernumber) {
60
                $("#bor_num_list").val($("#bor_num_list").val()+borrowernumber+"\r\n");
61
            }
62
52
            function DeDuplicate() {
63
            function DeDuplicate() {
53
                window.location = "/cgi-bin/koha/patroncards/edit-batch.pl?op=de_duplicate&amp;batch_id=[% batch_id %]";
64
                window.location = "/cgi-bin/koha/patroncards/edit-batch.pl?op=de_duplicate&amp;batch_id=[% batch_id %]";
54
            };
65
            };
Lines 144-150 Link Here
144
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
155
        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
145
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
156
        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
146
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">Manage patron card batches</a> &rsaquo;
157
        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">Manage patron card batches</a> &rsaquo;
147
        Manage batch number [% batch_id %]
158
        [% IF batch_id %]
159
            Manage batch number [% batch_id %]
160
        [% ELSE %]
161
            Create new batch
162
        [% END %]
148
    </div>
163
    </div>
149
    <div id="doc3" class="yui-t2">
164
    <div id="doc3" class="yui-t2">
150
        <div id="bd">
165
        <div id="bd">
Lines 169-174 Link Here
169
                    [% INCLUDE 'patroncards-errors.inc' %]
184
                    [% INCLUDE 'patroncards-errors.inc' %]
170
                    <div id="manage-patroncard-batches">
185
                    <div id="manage-patroncard-batches">
171
                        <div class="hint">Current library: [% LoginBranchname %]</div>
186
                        <div class="hint">Current library: [% LoginBranchname %]</div>
187
                            <form name="add_by_bor_num" action="/cgi-bin/koha/patroncards/edit-batch.pl" method="post">
188
                                <div>
189
                                    <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
190
                                    <ol><li>
191
                                    <input type="hidden" name="op" value="add" />
192
                                    <input type="hidden" name="batch_id" value="[% batch_id %]" />
193
                                    <label for="bor_num_list">Add by borrowernumber(s):
194
                                        <br /> <span class="hint">One borrowernumber per line.</span>
195
                                    </label>
196
                                    <textarea rows="5" id="bor_num_list" name="bor_num_list" tabindex="1" class="focus"></textarea>
197
                                    </li></ol>
198
                                    </fieldset>
199
                                </div>
200
                            </form>
172
                            [% IF ( table_loop ) %]
201
                            [% IF ( table_loop ) %]
173
                            <form name="items" class="checkboxed">
202
                            <form name="items" class="checkboxed">
174
                                <h2>Items in batch number [% batch_id %]</h2>
203
                                <h2>Items in batch number [% batch_id %]</h2>
Lines 210-218 Link Here
210
                                </table>
239
                                </table>
211
                            </form>
240
                            </form>
212
                            [% ELSE %]
241
                            [% ELSE %]
213
                                <div class="dialog message">
242
                                <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
214
                                <h4>There are no items in batch [% batch_id %] yet</h4>
243
                                <ol><li>
215
                                <p>Use the toolbar above to add items.</p></div>
244
                                    <div class="dialog message">
245
                                        <h4>There are no items in this batch yet</h4>
246
                                        <p>Add items by borrowernumber using the text area above or leave empty to add via patron search.</p>
247
                                    </div>
248
                                </li></ol>
249
                                </fieldset>
216
                            [% END %]
250
                            [% END %]
217
                        </div>
251
                        </div>
218
                    </div>
252
                    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/members-search.tt (-11 / +7 lines)
Lines 17-41 $(document).ready(function(){ Link Here
17
        return false;
17
        return false;
18
    });
18
    });
19
});
19
});
20
function add_item(borrowernum,batch_id,type_id){
20
function add_item(borrowernum){
21
 var getstr='';
21
 var p = window.opener;
22
 if (borrowernum == 'checked') {
22
 if (borrowernum == 'checked') {
23
    itms= new Array;
24
    if(document.resultform.borrowernumber.length > 0) {
23
    if(document.resultform.borrowernumber.length > 0) {
25
        for (var i=0; i < document.resultform.borrowernumber.length; i++) {
24
        for (var i=0; i < document.resultform.borrowernumber.length; i++) {
26
            if (document.resultform.borrowernumber[i].checked) {
25
            if (document.resultform.borrowernumber[i].checked) {
27
                itms.push("borrower_number=" +  document.resultform.borrowernumber[i].value);
26
                p.add_user(document.resultform.borrowernumber[i].value);
28
            }
27
            }
29
        }
28
        }
30
        getstr = itms.join("&");
31
    } else {
29
    } else {
32
        getstr = "borrower_number="+document.resultform.borrowernumber.value;
30
        if ( document.resultform.borrowernumber.checked ) { p.add_user(document.resultform.borrowernumber.value); }
33
    }
31
    }
34
  } else {
32
  } else {
35
		getstr = "borrower_number="+borrowernum;
33
        p.add_user(borrowernum);
36
    }
34
    }
37
 	var myurl = "edit-batch.pl?op=add&batch_id="+batch_id+"&"+getstr;
38
	window.opener.location.href = myurl;
39
}
35
}
40
//]]>
36
//]]>
41
</script>
37
</script>
Lines 80-86 function add_item(borrowernum,batch_id,type_id){ Link Here
80
[% IF ( resultsloop ) %]
76
[% IF ( resultsloop ) %]
81
<div id="searchheader"> <h3>Results [% from %] to [% to %] of [% numresults %] found [% IF ( member ) %]for name: '<span class="ex">[% member %]</span>'[% END %] [% IF ( category ) %]with category code: '<span class="ex">[% category %]</span>'[% END %]</h3></div>
77
<div id="searchheader"> <h3>Results [% from %] to [% to %] of [% numresults %] found [% IF ( member ) %]for name: '<span class="ex">[% member %]</span>'[% END %] [% IF ( category ) %]with category code: '<span class="ex">[% category %]</span>'[% END %]</h3></div>
82
[% IF ( paginationbar ) %]<div id="pagination_top" class="pages">[% paginationbar %]</div>[% END %]
78
[% IF ( paginationbar ) %]<div id="pagination_top" class="pages">[% paginationbar %]</div>[% END %]
83
<form name="resultform" action="/cgi-bin/koha/patroncards/members-search.pl" method="get" class="checkboxed"><div style="float: right; margin-top: .5em;"><input type="submit" class="icon addchecked" value="Add checked" onclick="add_item('checked',[% batch_id %]); return false" /> <input type="button" class="close" value="Done" /></div>
79
<form name="resultform" action="/cgi-bin/koha/patroncards/members-search.pl" method="get" class="checkboxed"><div style="float: right; margin-top: .5em;"><input type="submit" class="icon addchecked" value="Add checked" onclick="add_item('checked'); return false" /> <input type="button" class="close" value="Done" /></div>
84
<div style="line-height: 2em; margin-left: .7em;"><a id="CheckAll" href="/cgi-bin/koha/patroncards/members-search.pl">Select All</a><a id="CheckNone" href="/cgi-bin/koha/patroncards/members-search.pl">Clear All</a></div>
80
<div style="line-height: 2em; margin-left: .7em;"><a id="CheckAll" href="/cgi-bin/koha/patroncards/members-search.pl">Select All</a><a id="CheckNone" href="/cgi-bin/koha/patroncards/members-search.pl">Clear All</a></div>
85
<div class="searchresults">
81
<div class="searchresults">
86
82
Lines 108-114 function add_item(borrowernum,batch_id,type_id){ Link Here
108
    <td>[% resultsloo.branchcode %]</td>
104
    <td>[% resultsloo.branchcode %]</td>
109
    <td>[% resultsloo.dateexpiry %]</td>
105
    <td>[% resultsloo.dateexpiry %]</td>
110
    <td>[% resultsloo.borrowernotes %]</td>
106
    <td>[% resultsloo.borrowernotes %]</td>
111
    <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>
107
    <td><a onclick="add_item('[% resultsloo.borrowernumber %]'); return false" href="">Add</a></td>
112
    </tr>
108
    </tr>
113
    [% END %]
109
    [% END %]
114
    </table>
110
    </table>
(-)a/labels/label-edit-batch.pl (-11 / +17 lines)
Lines 26-32 use CGI; Link Here
26
26
27
use C4::Auth qw(get_template_and_user);
27
use C4::Auth qw(get_template_and_user);
28
use C4::Output qw(output_html_with_http_headers);
28
use C4::Output qw(output_html_with_http_headers);
29
use C4::Items qw(GetItemnumberFromBarcode);
29
use C4::Items qw(GetItem GetItemnumberFromBarcode);
30
use C4::Creators;
30
use C4::Creators;
31
use C4::Labels;
31
use C4::Labels;
32
32
Lines 57-67 my $display_columns = [ {_label_number => {label => 'Label Number', link_field Link Here
57
my $op = $cgi->param('op') || 'edit';
57
my $op = $cgi->param('op') || 'edit';
58
my @label_ids;
58
my @label_ids;
59
my @item_numbers;
59
my @item_numbers;
60
my $barcode;
60
my $number_list;
61
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || undef;
61
my $number_type = $cgi->param('number_type') || "barcode";
62
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || 0;
62
@label_ids = $cgi->param('label_id') if $cgi->param('label_id');
63
@label_ids = $cgi->param('label_id') if $cgi->param('label_id');
63
@item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
64
@item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
64
$barcode = $cgi->param('barcode') if $cgi->param('barcode');
65
$number_list = $cgi->param('number_list') if $cgi->param('number_list');
65
66
66
my $branch_code = C4::Context->userenv->{'branch'};
67
my $branch_code = C4::Context->userenv->{'branch'};
67
68
Lines 80-96 elsif ($op eq 'delete') { Link Here
80
    $errstr = "batch $batch_id was not deleted." if $err;
81
    $errstr = "batch $batch_id was not deleted." if $err;
81
}
82
}
82
elsif ($op eq 'add') {
83
elsif ($op eq 'add') {
83
    if ($barcode) {
84
    if ($number_list) {
84
        my @barcodes = split /\n/, $barcode; # $barcode is effectively passed in as a <cr> separated list
85
        my @numbers_list = split /\n/, $number_list; # Entries are effectively passed in as a <cr> separated list
85
        foreach my $number (@barcodes) {
86
        foreach my $number (@numbers_list) {
86
            $number =~ s/\r$//; # strip any naughty return chars
87
            $number =~ s/\r$//; # strip any naughty return chars
87
            if (my $item_number = GetItemnumberFromBarcode($number)) {  # we must test in case an invalid barcode is passed in; we effectively disgard them atm
88
            if( $number_type eq "itemnumber" && GetItem($number) ) {
88
                push @item_numbers, $item_number;
89
                push @item_numbers, $number;
90
            }
91
            elsif ($number_type eq "barcode" ) {  # we must test in case an invalid barcode is passed in; we effectively disgard them atm
92
                if( my $item_number = GetItemnumberFromBarcode($number) ){
93
                    push @item_numbers, $item_number;
94
                }
89
            }
95
            }
90
        }
96
        }
91
    }
97
    }
92
    $batch = C4::Labels::Batch->retrieve(batch_id => $batch_id);
98
    if ($batch_id != 0) {$batch = C4::Labels::Batch->retrieve(batch_id => $batch_id);}
93
    $batch = C4::Labels::Batch->new(branch_code => $branch_code) if $batch == -2;
99
    if ($batch_id == 0 || $batch == -2) {$batch = C4::Labels::Batch->new(branch_code => $branch_code);}
94
    if ($branch_code){
100
    if ($branch_code){
95
        foreach my $item_number (@item_numbers) {
101
        foreach my $item_number (@item_numbers) {
96
            $err = $batch->add_item($item_number);
102
            $err = $batch->add_item($item_number);
(-)a/patroncards/edit-batch.pl (-9 / +20 lines)
Lines 29-35 use C4::Auth qw(get_template_and_user); Link Here
29
use C4::Output qw(output_html_with_http_headers);
29
use C4::Output qw(output_html_with_http_headers);
30
use C4::Creators;
30
use C4::Creators;
31
use C4::Patroncards;
31
use C4::Patroncards;
32
32
use C4::Members qw(GetMember);
33
my $cgi = new CGI;
33
my $cgi = new CGI;
34
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
34
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
35
    {
35
    {
Lines 53-64 my $display_columns = [ {_card_number => {label => 'Card Number', link_field = Link Here
53
                        {select         => {label => 'Select', value => '_label_id'}},
53
                        {select         => {label => 'Select', value => '_label_id'}},
54
                      ];
54
                      ];
55
my $op = $cgi->param('op') || 'new';
55
my $op = $cgi->param('op') || 'new';
56
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || undef;
56
my $batch_id = $cgi->param('element_id') || $cgi->param('batch_id') || 0;
57
my @label_ids = $cgi->param('label_id') if $cgi->param('label_id');
57
my ( @label_ids, @item_numbers, @borrower_numbers );
58
my @item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
58
@label_ids = $cgi->param('label_id') if $cgi->param('label_id');
59
my @borrower_numbers = $cgi->param('borrower_number') if $cgi->param('borrower_number');
59
@item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
60
@borrower_numbers = $cgi->param('borrower_number') if $cgi->param('borrower_number');
60
my $errstr = $cgi->param('error') || '';
61
my $errstr = $cgi->param('error') || '';
61
62
my $bor_num_list = $cgi->param('bor_num_list') || undef;
62
my $branch_code = C4::Context->userenv->{'branch'};
63
my $branch_code = C4::Context->userenv->{'branch'};
63
64
64
if ($op eq 'remove') {
65
if ($op eq 'remove') {
Lines 79-90 elsif ($op eq 'delete') { Link Here
79
    }
80
    }
80
}
81
}
81
elsif ($op eq 'add') {
82
elsif ($op eq 'add') {
82
    $batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);
83
if ($bor_num_list) {
83
    $batch = C4::Patroncards::Batch->new(branch_code => $branch_code) if $batch == -2;
84
        my @bor_nums_unchecked = split /\n/, $bor_num_list; # $bor_num_list is effectively passed in as a <cr> separated list
85
        foreach my $number (@bor_nums_unchecked) {
86
            $number =~ s/\r$//; # strip any naughty return chars
87
            if ( GetMember(borrowernumber => $number)) {  # we must test in case an invalid borrowernumber is passed in; we effectively disgard them atm
88
                my $borrower_number = $number;
89
                push @borrower_numbers, $borrower_number;
90
            }
91
        }
92
    }
93
    if ($batch_id != 0) {$batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);}
94
    if ($batch_id == 0 || $batch == -2) {$batch = C4::Patroncards::Batch->new(branch_code => $branch_code);}
84
    if ($branch_code){
95
    if ($branch_code){
85
        foreach my $borrower_number (@borrower_numbers) {
96
        foreach my $borrower_number (@borrower_numbers) {
86
            $err = $batch->add_item($borrower_number);
97
            $err = $batch->add_item($borrower_number);
87
        }
98
        }
99
        $batch_id = $batch->get_attr('batch_id') if $batch_id == 0; #update batch_id if we added to a new batch
88
        if ($err) {
100
        if ($err) {
89
            print $cgi->redirect("edit-batch.pl?op=edit&batch_id=$batch_id&error=401");
101
            print $cgi->redirect("edit-batch.pl?op=edit&batch_id=$batch_id&error=401");
90
            exit;
102
            exit;
91
- 

Return to bug 14739