Bugzilla – Attachment 138445 Details for
Bug 30874
Simplify patron category handling in memberentry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30874: 2 more - need more investigation
Bug-30874-2-more---need-more-investigation.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2022-08-01 07:47:30 UTC
(
hide
)
Description:
Bug 30874: 2 more - need more investigation
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-08-01 07:47:30 UTC
Size:
1.54 KB
patch
obsolete
>From b07c7780ea0085fc487307f76e10bc824053ad99 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 1 Jun 2022 10:00:08 +0200 >Subject: [PATCH] Bug 30874: 2 more - need more investigation > >--- > members/memberentry.pl | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 3cb9df80a57..f2b51b7a348 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -430,8 +430,7 @@ elsif ( $borrowernumber ) { > > if ( ($op eq 'modify' || $op eq 'insert' || $op eq 'save'|| $op eq 'duplicate') and ($step == 0 or $step == 3 )){ > unless ($newdata{'dateexpiry'}){ >- my $patron_category = Koha::Patron::Categories->find( $newdata{categorycode} ); >- $newdata{'dateexpiry'} = $patron_category->get_expiry_date( $newdata{dateenrolled} ) if $patron_category; >+ $newdata{'dateexpiry'} = $category->get_expiry_date( $newdata{dateenrolled} ) if $category; > } > } > >@@ -791,8 +790,7 @@ if (!defined($data{'dateenrolled'}) or $data{'dateenrolled'} eq ''){ > } > if ( $op eq 'duplicate' ) { > $data{'dateenrolled'} = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); >- my $patron_category = Koha::Patron::Categories->find( $data{categorycode} ); >- $data{dateexpiry} = $patron_category->get_expiry_date( $data{dateenrolled} ); >+ $data{dateexpiry} = $category->get_expiry_date( $data{dateenrolled} ); > } > if (C4::Context->preference('uppercasesurnames')) { > $data{'surname'} &&= uc( $data{'surname'} ); >-- >2.25.1
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 30874
:
135524
|
135525
|
135526
|
135527
|
135528
|
135529
|
138443
|
138444
|
138445
|
138446
|
138447
|
138545
|
138546
|
138547
|
138548
|
138549
|
138637
|
138638
|
138639
|
138640
|
138641