Bugzilla – Attachment 70348 Details for
Bug 19933
Move C4::Members::patronflags to the Koha namespace - part 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19933: Remove patronflags - In CanBookBeIssued
Bug-19933-Remove-patronflags---In-CanBookBeIssued.patch (text/plain), 1.41 KB, created by
Jonathan Druart
on 2018-01-09 14:24:56 UTC
(
hide
)
Description:
Bug 19933: Remove patronflags - In CanBookBeIssued
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-01-09 14:24:56 UTC
Size:
1.41 KB
patch
obsolete
>From 609d3e54c9b20803738aa6eaacd8f66cb27363eb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sun, 7 Jan 2018 13:48:16 -0300 >Subject: [PATCH] Bug 19933: Remove patronflags - In CanBookBeIssued > >The change is trivial here, we only want to pass gonenoaddress, lost and >is_debared to the template. >--- > C4/Circulation.pm | 20 +++++++++----------- > 1 file changed, 9 insertions(+), 11 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index b6fe10efef..ffbfbf38f8 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -737,18 +737,16 @@ sub CanBookBeIssued { > return( { STATS => 1 }, {}); > } > >- my $flags = C4::Members::patronflags( $borrower ); >- if ( ref $flags ) { >- if ( $flags->{GNA} ) { >- $issuingimpossible{GNA} = 1; >- } >- if ( $flags->{'LOST'} ) { >- $issuingimpossible{CARD_LOST} = 1; >- } >- if ( $flags->{'DBARRED'} ) { >- $issuingimpossible{DEBARRED} = 1; >- } >+ if ( $patron->gonenoaddress == 1 ) { >+ $issuingimpossible{GNA} = 1; > } >+ if ( $patron->lost == 1 ) { >+ $issuingimpossible{CARD_LOST} = 1; >+ } >+ if ( $patron->is_debarred ) { >+ $issuingimpossible{DEBARRED} = 1; >+ } >+ > if ( !defined $borrower->{dateexpiry} || $borrower->{'dateexpiry'} eq '0000-00-00') { > $issuingimpossible{EXPIRED} = 1; > } else { >-- >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 19933
:
70347
|
70348
|
70349
|
70350
|
71803
|
71804
|
71805
|
71806
|
72004
|
72005
|
72006
|
72007
|
72094
|
72095
|
72350
|
72351
|
72352
|
72353
|
72354
|
72355
|
72356
|
72472
|
72473
|
72474
|
72475
|
72476
|
72477
|
72478