Bugzilla – Attachment 58416 Details for
Bug 14637
Add patron category fails with MySQL 5.6.26
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14637: Fix add patron category under MySQL 5.7 - tests
Bug-14637-Fix-add-patron-category-under-MySQL-57--.patch (text/plain), 1.33 KB, created by
Kyle M Hall (khall)
on 2016-12-23 13:36:27 UTC
(
hide
)
Description:
Bug 14637: Fix add patron category under MySQL 5.7 - tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-12-23 13:36:27 UTC
Size:
1.33 KB
patch
obsolete
>From 2eb3702aacfb26234ff096594d9b6282f99ddffd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 6 Sep 2016 10:40:28 +0100 >Subject: [PATCH] Bug 14637: Fix add patron category under MySQL 5.7 - tests > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Koha/Patron/Categories.t | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/t/db_dependent/Koha/Patron/Categories.t b/t/db_dependent/Koha/Patron/Categories.t >index 58670f7..767eb5a 100644 >--- a/t/db_dependent/Koha/Patron/Categories.t >+++ b/t/db_dependent/Koha/Patron/Categories.t >@@ -103,6 +103,16 @@ subtest 'BlockExpiredPatronOpacActions' => sub { > $retrieved_category_1->delete; > is( Koha::Patron::Categories->search->count, $nb_of_categories + 1, 'Delete should have deleted the patron category' ); > >+my $new_category_4 = Koha::Patron::Category->new( >+ { categorycode => 'mycatcodeW', >+ category_type => 'A', >+ description => 'mycatdescW', >+ upperagelimit => '', >+ dateofbirthrequired => '', >+ } >+)->store; >+is( Koha::Patron::Categories->search->count, $nb_of_categories + 2, 'upperagelimit and dateofbirthrequired should have a default value if empty string is passed' ); >+ > $schema->storage->txn_rollback; > > 1; >-- >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 14637
:
55232
|
55233
|
56674
|
56675
|
56676
|
56677
| 58416 |
58417
|
58418