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

(-)a/tools/batch_delete_records.pl (-3 / +9 lines)
Lines 45-57 my ($template, $loggedinuser, $cookie) = get_template_and_user({ Link Here
45
        flagsrequired => { tools => 'records_batchdel' },
45
        flagsrequired => { tools => 'records_batchdel' },
46
});
46
});
47
47
48
$template->param( lists => scalar Koha::Virtualshelves->search([{ category => 1, owner => $loggedinuser }, { category => 2 }]) );
49
50
my @records;
48
my @records;
51
my @messages;
49
my @messages;
52
if ( $op eq 'form' ) {
50
if ( $op eq 'form' ) {
53
    # Display the form
51
    # Display the form
54
    $template->param( op => 'form' );
52
    $template->param(
53
        op => 'form',
54
        lists => scalar Koha::Virtualshelves->search(
55
            [
56
                { category => 1, owner => $loggedinuser },
57
                { category => 2 }
58
            ]
59
        )
60
    );
55
} elsif ( $op eq 'list' ) {
61
} elsif ( $op eq 'list' ) {
56
    # List all records to process
62
    # List all records to process
57
    my @record_ids;
63
    my @record_ids;
(-)a/tools/batch_record_modification.pl (-1 / +6 lines)
Lines 82-87 if ( $op eq 'form' ) { Link Here
82
    # Display the form
82
    # Display the form
83
    $template->param(
83
    $template->param(
84
        view => 'form',
84
        view => 'form',
85
        lists => scalar Koha::Virtualshelves->search(
86
            [
87
                { category => 1, owner => $loggedinuser },
88
                { category => 2 }
89
            ]
90
        )
85
    );
91
    );
86
} elsif ( $op eq 'list' ) {
92
} elsif ( $op eq 'list' ) {
87
    # List all records to process
93
    # List all records to process
88
- 

Return to bug 28835