@@ -, +, @@ 1) Go to system preferences and disable borrowerRelationship. 2) Create a new patron or modify the existing one. 3) Under "Guarantor Information" click on "Search to add" button. After performing the search, select different patron to act as guarantor. 4) Observe that there's empty dropdown for the relation type. 5) Apply the patch. 6) Repeat steps above. 7) Observe that dropdown is no longer there. --- .../prog/en/modules/members/memberentrygen.tt | 76 ++++++++++--------- 1 file changed, 42 insertions(+), 34 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -457,25 +457,29 @@ legend:hover { -
  • - [% UNLESS empty_relationship_allowed %] - - - [% END %] - - [% FOREACH pr IN possible_relationships.split('\|') %] - [% IF pr != "" %] - + [% IF possible_relationships %] +
  • + [% UNLESS empty_relationship_allowed %] + + + [% END %] + + [% FOREACH pr IN possible_relationships.split('\|') %] + [% IF pr != "" %] + + [% END %] [% END %] + + [% UNLESS empty_relationship_allowed %] + Required [% END %] - - [% UNLESS empty_relationship_allowed %] - Required - [% END %] -
  • + + [% ELSE %] + + [% END %]
  • @@ -497,25 +501,29 @@ legend:hover {
  • -
  • - [% UNLESS empty_relationship_allowed %] - - - [% END %] - - [% FOREACH pr IN possible_relationships.split('\|') %] - [% IF pr != "" %] - + [% IF possible_relationships %] +
  • + [% UNLESS empty_relationship_allowed %] + + + [% END %] + + [% FOREACH pr IN possible_relationships.split('\|') %] + [% IF pr != "" %] + + [% END %] [% END %] + + [% UNLESS empty_relationship_allowed %] + Required [% END %] - - [% UNLESS empty_relationship_allowed %] - Required - [% END %] -
  • + + [% ELSE %] + + [% END %]
  • --