Bugzilla – Attachment 78453 Details for
Bug 20592
updateitem.pl causes database errors when empty non-public item notes updated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20592: Add tests
Bug-20592-Add-tests.patch (text/plain), 1.16 KB, created by
Mark Tompsett
on 2018-09-06 00:53:19 UTC
(
hide
)
Description:
Bug 20592: Add tests
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-09-06 00:53:19 UTC
Size:
1.16 KB
patch
obsolete
>From 01ab5ded3fdc33f5d9096a4323bb99a47bc21483 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 24 Apr 2018 15:53:02 -0300 >Subject: [PATCH] Bug 20592: Add tests > >NOTE: It isn't really a test, but it does trigger > the return line which was added to ModItem. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/db_dependent/Items.t | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t >index 92151d662d..f8e8dc8fb5 100755 >--- a/t/db_dependent/Items.t >+++ b/t/db_dependent/Items.t >@@ -70,6 +70,12 @@ subtest 'General Add, Get and Del tests' => sub { > is( $getitem->{location}, $location, "The location should not have been modified" ); > is( $getitem->{permanent_location}, $location, "The permanent_location should have been set to the location value" ); > >+ >+ # Do not modify anything, and do not explode! >+ my $dbh = C4::Context->dbh; >+ local $dbh->{RaiseError} = 1; >+ ModItem({}, $bibnum, $itemnumber); >+ > # Modify item; setting barcode. > ModItem({ barcode => '987654321' }, $bibnum, $itemnumber); > my $moditem = GetItem($itemnumber); >-- >2.11.0
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 20592
:
74286
|
74399
|
74400
|
74824
|
74825
|
74826
|
78453
|
78454
|
80728
|
80731
|
80732