Bugzilla – Attachment 71735 Details for
Bug 18789
Send a Koha::Patron object to the templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18789: (QA follow-up) Update holdshistory.pl, fix is_child, is_adult, patron->image, clear template params
Bug-18789-QA-follow-up-Update-holdshistorypl-fix-i.patch (text/plain), 1.46 KB, created by
Josef Moravec
on 2018-02-16 11:13:52 UTC
(
hide
)
Description:
Bug 18789: (QA follow-up) Update holdshistory.pl, fix is_child, is_adult, patron->image, clear template params
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-02-16 11:13:52 UTC
Size:
1.46 KB
patch
obsolete
>From ff5d9d36981e0fa1194f7f2248ef702fb2289e2b Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Fri, 16 Feb 2018 10:58:42 +0000 >Subject: [PATCH] Bug 18789: (QA follow-up) Update holdshistory.pl, fix > is_child, is_adult, patron->image, clear template params > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > members/holdshistory.pl | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) > >diff --git a/members/holdshistory.pl b/members/holdshistory.pl >index 06d0d1e..1983a35 100755 >--- a/members/holdshistory.pl >+++ b/members/holdshistory.pl >@@ -74,21 +74,14 @@ if ( $borrowernumber eq C4::Context->preference('AnonymousPatron') ){ > } > } > >-if ( $patron->category->category_type eq 'C') { >+if ( $patron->is_child) { > my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); > $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; > $template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; > } > >-$template->param( adultborrower => 1 ) if ( $patron->category->category_type eq 'A' || $patron->category->category_type eq 'I' ); >- >-$template->param( picture => 1 ) if $patron->image; >- >-$template->param(%{ $patron->unblessed }); >- > $template->param( > holdshistoryview => 1, >- borrowernumber => $borrowernumber, > patron => $patron, > holds => \@all_holds, > ); >-- >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 18789
:
64211
|
64212
|
64213
|
64214
|
64215
|
64216
|
64218
|
64219
|
64221
|
64229
|
71301
|
71302
|
71303
|
71304
|
71305
|
71306
|
71307
|
71308
|
71309
|
71310
|
71311
|
71485
|
71486
|
71487
|
71488
|
71489
|
71490
|
71491
|
71492
|
71493
|
71494
|
71495
|
71496
|
71679
|
71680
|
71681
|
71682
|
71683
|
71684
|
71685
|
71686
|
71687
|
71688
|
71689
|
71690
|
71691
|
71713
|
71714
|
71715
|
71716
|
71717
|
71718
|
71719
|
71720
|
71721
|
71722
|
71723
|
71724
|
71725
|
71726
|
71727
|
71728
|
71729
|
71730
|
71731
|
71732
|
71733
|
71734
| 71735 |
71736
|
71827
|
71838
|
71841
|
73293
|
73890
|
75237