Bug 18423 - Add child button not always appearing - problem in template variable
authorNick Clemens <nick@bywatersolutions.com>
Wed, 12 Apr 2017 14:23:56 +0000 (10:23 -0400)
committerMason James <mtj@kohaaloha.com>
Sun, 30 Apr 2017 11:19:58 +0000 (23:19 +1200)
commit46fd998c85ea36291f5af6169f8860d36fb57a94
treea200c4de28e9b6638daee786ee7fc839cb7987d7
parentc7cfc20995d885c33f53e16ce01c09146efceab6
Bug 18423 - Add child button not always appearing - problem in template variable

This patch removes the retrieval of the syspref borrowerRelationship
from the scripts and moves it to a check using the Template Toolkit
plugin

To test:
1 - Apply patch
2 - Ensure 'Add child' button displays appropriately on all member pages.

Tested 3 pateches together, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Mason James <mtj@kohaaloha.com>
13 files changed:
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc
members/boraccount.pl
members/deletemem.pl
members/mancredit.pl
members/maninvoice.pl
members/member-flags.pl
members/member-password.pl
members/moremember.pl
members/notices.pl
members/pay.pl
members/paycollect.pl
members/readingrec.pl