Bug 18423 - Add child button not always appearing - problem in template variable
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / members-toolbar.inc
index 68dd762..5b467ac 100644 (file)
@@ -142,7 +142,7 @@ function searchToHold(){
     [% END %]
 
     [% IF ( CAN_user_borrowers ) %]
-        [% IF ( adultborrower AND activeBorrowerRelationship ) %]
+        [% IF adultborrower AND Koha.Preference("borrowerRelationship") %]
             <a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]"><i class="fa fa-plus"></i> Add child</a>
         [% END %]
         [% IF ( CAN_user_borrowers ) %]