Bugzilla – Attachment 49598 Details for
Bug 15928
Show unlinked guarantor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15928 - Show unlinked guarantor
Bug-15928---Show-unlinked-guarantor.patch (text/plain), 2.30 KB, created by
Nick Clemens (kidclamp)
on 2016-03-25 20:19:21 UTC
(
hide
)
Description:
Bug 15928 - Show unlinked guarantor
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-03-25 20:19:21 UTC
Size:
2.30 KB
patch
obsolete
>From df3d9b2927b6954a186340a87a0e10f5cfcd0906 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 26 Feb 2016 21:08:55 +0000 >Subject: [PATCH] Bug 15928 - Show unlinked guarantor > >To test: >1 - Add guarantor data to patron account >2 - Note it is not displayed on patron details >3 - Apply patch >4 - Note the info is displayed >5 - Test that linked guarantors show as expected >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 6 +++++- > members/moremember.pl | 6 +++++- > 2 files changed, 10 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 8355bf5..31c357a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -246,7 +246,11 @@ function validate1(date) { > [% ELSIF guarantor %] > <li> > <span class="label">Guarantor:</span> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname %] [% guarantor.surname %]</a> >+ [% IF guarantor.borrowernumber %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname %] [% guarantor.surname %]</a> >+ [% ELSE %] >+ [% guarantor.firstname %] [% guarantor.surname %] >+ [% END %] > </li> > [% END %] > </ol> >diff --git a/members/moremember.pl b/members/moremember.pl >index 4a5c06d..d230dc5 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -169,10 +169,14 @@ if ( my $guarantor = $patron->guarantor ) { > $template->param( guarantor => $guarantor ); > push @relatives, $guarantor->borrowernumber; > push @relatives, $_->borrowernumber for $patron->siblings; >+} elsif ( $patron->contactname || $patron->contactfirstname ) { >+ $template->param( guarantor => { >+ firstname => $patron->contactfirstname, >+ surname => $patron->contactname, >+ }); > } else { > my @guarantees = $patron->guarantees; > $template->param( guarantees => \@guarantees ); >- push @relatives, $_->borrowernumber for @guarantees; > } > > my $relatives_issues_count = >-- >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 15928
:
48414
|
49598
|
49599
|
49848
|
50234