Bugzilla – Attachment 62307 Details for
Bug 18423
Add child button not always appearing - problem in template variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18423 - Add 'Add child' button to files, housebound, and deletemem pages
Bug-18423---Add-Add-child-button-to-files-housebou.patch (text/plain), 1.87 KB, created by
Nick Clemens (kidclamp)
on 2017-04-18 17:55:03 UTC
(
hide
)
Description:
Bug 18423 - Add 'Add child' button to files, housebound, and deletemem pages
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-04-18 17:55:03 UTC
Size:
1.87 KB
patch
obsolete
>From 454cc1ea09fe59b66aa864706cc20e992fe3aff2 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 18 Apr 2017 13:53:54 -0400 >Subject: [PATCH] Bug 18423 - Add 'Add child' button to files, housebound, and > deletemem pages > >--- > members/deletemem.pl | 2 ++ > members/files.pl | 1 + > members/housebound.pl | 1 + > 3 files changed, 4 insertions(+) > >diff --git a/members/deletemem.pl b/members/deletemem.pl >index 85c9ff5..0d0ba64 100755 >--- a/members/deletemem.pl >+++ b/members/deletemem.pl >@@ -110,6 +110,8 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'} or $is_ > my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber}); > $template->param( picture => 1 ) if $patron_image; > >+ $template->param( adultborrower => 1 ) if ( $bor->{category_type} eq 'A' ); >+ > $template->param(borrowernumber => $member, > surname => $bor->{'surname'}, > title => $bor->{'title'}, >diff --git a/members/files.pl b/members/files.pl >index 709c2aa..1d99bcf 100755 >--- a/members/files.pl >+++ b/members/files.pl >@@ -117,6 +117,7 @@ else { > my $patron_image = Koha::Patron::Images->find($data->{borrowernumber}); > $template->param( picture => 1 ) if $patron_image; > >+ $template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' ); > $template->param( > files => Koha::Patron::Files->new( borrowernumber => $borrowernumber ) > ->GetFilesInfo(), >diff --git a/members/housebound.pl b/members/housebound.pl >index ad3e88d..0b571e6 100755 >--- a/members/housebound.pl >+++ b/members/housebound.pl >@@ -171,6 +171,7 @@ if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) { > ); > } > >+$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' ); > $template->param( > picture => $patron_image, > housebound_profile => $houseboundprofile, >-- >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 18423
:
62094
|
62100
|
62101
|
62225
|
62228
|
62229
|
62230
|
62307
|
62308
|
62312
|
62313
|
62314
|
62315
|
62316