Bugzilla – Attachment 76914 Details for
Bug 20287
Move AddMember and ModMember to Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20287: Fix test t/db_dependent/Members.t and prevent regressions
Bug-20287-Fix-test-tdbdependentMemberst-and-preven.patch (text/plain), 1.33 KB, created by
Jonathan Druart
on 2018-07-12 18:50:06 UTC
(
hide
)
Description:
Bug 20287: Fix test t/db_dependent/Members.t and prevent regressions
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-12 18:50:06 UTC
Size:
1.33 KB
patch
obsolete
>From 78f3d1724b07c3220de534146e754ec3b2be9751 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 23 Feb 2018 12:55:33 -0300 >Subject: [PATCH] Bug 20287: Fix test t/db_dependent/Members.t and prevent > regressions > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Patron.pm | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index ca07ad80b2..3b0d804add 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -256,6 +256,13 @@ sub store { > $self->dateenrolled(undef) unless $self->dateenrolled; > $self->dateexpiry(undef) unless $self->dateexpiry; > >+ # FIXME We should not deal with that here, callers have to do this job >+ # Moved from ModMember to prevent regressions >+ unless ( $self->userid ) { >+ my $stored_userid = $self->get_from_storage->userid; >+ $self->userid($stored_userid); >+ } >+ > if ( C4::Context->preference('FeeOnChangePatronCategory') > and $self->category->categorycode ne > $self->get_from_storage->category->categorycode ) >-- >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 20287
:
73436
|
76901
|
76902
|
76903
|
76904
|
76905
|
76906
|
76907
|
76908
|
76909
|
76910
|
76911
|
76912
|
76913
| 76914 |
76915
|
76916
|
76917
|
76918
|
76919
|
76920
|
76921
|
76922
|
76923
|
76924
|
76927
|
77221