Bugzilla – Attachment 74824 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.01 KB, created by
Jonathan Druart
on 2018-04-24 18:55:06 UTC
(
hide
)
Description:
Bug 20592: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-04-24 18:55:06 UTC
Size:
1.01 KB
patch
obsolete
>From 3f97372ebb2bc05519036d8549544da8e845a1da 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 > >--- > 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 ef098734c9..1189e26c74 100755 >--- a/t/db_dependent/Items.t >+++ b/t/db_dependent/Items.t >@@ -73,6 +73,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