@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 5 ++++- members/moremember.pl | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -236,8 +236,11 @@ function validate1(date) {
  • Guarantees:
  • [% END %] [% ELSE %] + [% IF ( !guarantorborrowernumber && (guarantorsurname || guarantorfirstname) ) %] +
  • Guarantor:[% guarantorsurname %][%IF ( guarantorfirstname && guarantorsurname ) %], [% END %][% guarantorfirstname %]
  • + [% END %] [% IF ( guarantorborrowernumber ) %] -
  • Guarantor:[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %] [% END %]
  • +
  • Guarantor:[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %] [% END %]
  • [% END %] [% END %] --- a/members/moremember.pl +++ a/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); } --