Bugzilla – Attachment 50234 Details for
Bug 15928
Show unlinked guarantor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[3.22.x] Bug 15928 - Show unlinked guarantor
Bug-15928---Show-unlinked-guarantor.patch (text/plain), 2.16 KB, created by
Julian Maurice
on 2016-04-14 13:18:15 UTC
(
hide
)
Description:
[3.22.x] Bug 15928 - Show unlinked guarantor
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2016-04-14 13:18:15 UTC
Size:
2.16 KB
patch
obsolete
>From bebb61739f4460295151a37d44cc1a2d6f956d26 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 by typing it in but do not 'Set to patron' >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 > >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 ++ > members/moremember.pl | 5 +++++ > 2 files changed, 7 insertions(+) > >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 fec89ab..c0517b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -241,6 +241,8 @@ function validate1(date) { > [% ELSE %] > [% IF ( guarantorborrowernumber ) %] > <li><span class="label">Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorborrowernumber %]">[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %] [% END %]</a></li> >+ [% ELSIF (guarantorsurname || guarantorfirstname) %] >+ <li><span class="label">Guarantor:</span>[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %][% END %]</li> > [% END %] > [% END %] > </ol> >diff --git a/members/moremember.pl b/members/moremember.pl >index 2fc9de7..7166499 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -190,6 +190,11 @@ else { > foreach (qw(borrowernumber cardnumber firstname surname)) { > $template->param("guarantor$_" => $guarantor->{$_}); > } >+ } elsif ($data->{contactname} || $data->{contactfirstname}) { >+ $template->param( >+ guarantorfirstname => $data->{contactfirstname}, >+ guarantorsurname => $data->{contactname}, >+ ); > } > if ($category_type eq 'C'){ > $template->param('C' => 1); >-- >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