Bugzilla – Attachment 48414 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.73 KB, created by
Nick Clemens (kidclamp)
on 2016-02-26 21:15:25 UTC
(
hide
)
Description:
Bug 15928 - Show unlinked guarantor
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-02-26 21:15:25 UTC
Size:
2.73 KB
patch
obsolete
>From 3c7032bf81c5d73bb2bbf5462595664d2e9e4cfd 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 patorn details >3 - Apply patch >4 - Note the info is displayed >5 - Test with combos of firstname/surname individually, you should see >either but only a comma if both are present >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 5 ++++- > members/moremember.pl | 8 ++++++++ > 2 files changed, 12 insertions(+), 1 deletion(-) > >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 adaedb5..1ca5467 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -236,8 +236,11 @@ function validate1(date) { > <li><span class="label">Guarantees:</span><ul>[% FOREACH guaranteeloo IN guaranteeloop %]<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guaranteeloo.borrowernumber %]">[% guaranteeloo.name %] </a></li>[% END %]</ul></li> > [% END %] > [% ELSE %] >+ [% IF ( !guarantorborrowernumber && (guarantorsurname || guarantorfirstname) ) %] >+ <li><span class="label" id="guarantor_info" >Guarantor:</span>[% guarantorsurname %][%IF ( guarantorfirstname && guarantorsurname ) %], [% END %][% guarantorfirstname %] </li> >+ [% END %] > [% 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> >+ <li><span class="label" id="guarantor_info" >Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorborrowernumber %]">[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %] [% END %]</a></li> > [% END %] > [% END %] > </ol> >diff --git a/members/moremember.pl b/members/moremember.pl >index e233b46..cd9f2cc 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -192,6 +192,14 @@ else { > $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