Bugzilla – Attachment 66486 Details for
Bug 19004
Koha/Patrons.t fails when item-level_itypes is not set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19004: build_object takes care of existing data
Bug-19004-buildobject-takes-care-of-existing-data.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2017-08-25 15:21:22 UTC
(
hide
)
Description:
Bug 19004: build_object takes care of existing data
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-08-25 15:21:22 UTC
Size:
1.19 KB
patch
obsolete
>From ab5d35cf5c44210cd77a51e4400188315fb6d02a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 25 Aug 2017 12:20:15 -0300 >Subject: [PATCH] Bug 19004: build_object takes care of existing data > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Koha/Patrons.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t >index 96a833e4bf..49c8c92464 100644 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -378,7 +378,7 @@ subtest 'add_enrolment_fee_if_needed' => sub { > > my $enrolmentfees = { K => 5, J => 10, YA => 20 }; > foreach( keys %{$enrolmentfees} ) { >- ( Koha::Patron::Categories->find( $_ ) // $builder->build_object({ class => 'Koha::Patron::Categories', value => { categorycode => $_ } }) )->enrolmentfee( $enrolmentfees->{$_} )->store; >+ $builder->build_object({ class => 'Koha::Patron::Categories', value => { categorycode => $_ } })->enrolmentfee( $enrolmentfees->{$_} )->store; > } > my $enrolmentfee_K = $enrolmentfees->{K}; > my $enrolmentfee_J = $enrolmentfees->{J}; >-- >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 19004
:
65789
|
65790
|
66037
|
66038
|
66486
|
66546
|
66721
|
66722
|
66723