Bugzilla – Attachment 80731 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.24 KB, created by
Jonathan Druart
on 2018-10-17 15:45:56 UTC
(
hide
)
Description:
Bug 20592: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-10-17 15:45:56 UTC
Size:
1.24 KB
patch
obsolete
>From 014447d6a652e99c47d8d2a12de77b2aa86925af 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> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 d8734f4eb3..3ccd38ee5d 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