Bugzilla – Attachment 68909 Details for
Bug 19420
Improve display of errors from failure of uploading file during stage import
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19420: (QA Follow-up) Fix test, correct POD
Bug-19420-QA-Follow-up-Fix-test-correct-POD.patch (text/plain), 1.38 KB, created by
Marcel de Rooy
on 2017-11-03 09:21:36 UTC
(
hide
)
Description:
Bug 19420: (QA Follow-up) Fix test, correct POD
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-11-03 09:21:36 UTC
Size:
1.38 KB
patch
obsolete
>From e1bf0bdbb72589ca586c6a98a8f31f1c9fc12bbc Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 3 Nov 2017 10:19:57 +0100 >Subject: [PATCH] Bug 19420: (QA Follow-up) Fix test, correct POD >Content-Type: text/plain; charset=utf-8 > >The test needs the code level in the error hash now. >And POD is adjusted accordingly. >--- > Koha/Uploader.pm | 2 +- > t/db_dependent/Upload.t | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Uploader.pm b/Koha/Uploader.pm >index 7a02d11..8e6a2aa 100644 >--- a/Koha/Uploader.pm >+++ b/Koha/Uploader.pm >@@ -143,7 +143,7 @@ sub result { > > =head2 err > >- Returns hash with errors in format { file => err, ... } >+ Returns hashref with errors in format { file => { code => err }, ... } > Undefined if there are no errors. > > =cut >diff --git a/t/db_dependent/Upload.t b/t/db_dependent/Upload.t >index 8d77362..41b3fff 100644 >--- a/t/db_dependent/Upload.t >+++ b/t/db_dependent/Upload.t >@@ -145,7 +145,7 @@ subtest 'Add same file in same category' => sub { > is( $upl->count, 0, 'Upload 4 failed as expected' ); > is( $upl->result, undef, 'Result is undefined' ); > my $e = $upl->err; >- is( $e->{file2}, 1, "Errcode 1 [already exists] reported" ); >+ is( $e->{file2}->{code}, 1, "Errcode 1 [already exists] reported" ); > }; > > subtest 'Test delete via UploadedFile as well as UploadedFiles' => sub { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19420
:
67685
|
68292
|
68365
|
68909
|
68910
|
68941
|
68960
|
68961
|
68962
|
68963