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

(-)a/Koha/Uploader.pm (-1 / +1 lines)
Lines 143-149 sub result { Link Here
143
143
144
=head2 err
144
=head2 err
145
145
146
    Returns hash with errors in format { file => err, ... }
146
    Returns hashref with errors in format { file => { code => err }, ... }
147
    Undefined if there are no errors.
147
    Undefined if there are no errors.
148
148
149
=cut
149
=cut
(-)a/t/db_dependent/Upload.t (-2 / +1 lines)
Lines 145-151 subtest 'Add same file in same category' => sub { Link Here
145
    is( $upl->count, 0, 'Upload 4 failed as expected' );
145
    is( $upl->count, 0, 'Upload 4 failed as expected' );
146
    is( $upl->result, undef, 'Result is undefined' );
146
    is( $upl->result, undef, 'Result is undefined' );
147
    my $e = $upl->err;
147
    my $e = $upl->err;
148
    is( $e->{file2}, 1, "Errcode 1 [already exists] reported" );
148
    is( $e->{file2}->{code}, 1, "Errcode 1 [already exists] reported" );
149
};
149
};
150
150
151
subtest 'Test delete via UploadedFile as well as UploadedFiles' => sub {
151
subtest 'Test delete via UploadedFile as well as UploadedFiles' => sub {
152
- 

Return to bug 19420