From fb449aaede3f23ee71e9e50286a26035bb3ef640 Mon Sep 17 00:00:00 2001 From: Jacek Ablewicz Date: Fri, 12 Aug 2016 16:19:52 +0200 Subject: [PATCH] Bug 17117: Patron personal details not displayed unless branch update request is enabled In patron acount ("your personal details" tab, which serves as a form for submitting update requests as well) it's not possible to display some account details like expiration date etc., without enabling the field for branch / library update requests too. To reproduce: 1) set OPACPatronDetails to "Allow" 2) clear PatronSelfModificationBorrowerUnwantedField preference - all possible fields in the update requests form are visible in patron account, including some extra details (card number, expiration date, category) in the "Library" section on top 3) put 'branchcode' in PatronSelfModificationBorrowerUnwantedField preference 4) the whole 'Library' section disappears To test: 1) apply patch 2) put 'branchcode' in PatronSelfModificationBorrowerUnwantedField, 'Library' section should remain visible (sans branch selection option) 3) put 'branchcode|cardnumber|datexpiry|categorycode' in the same preference, 'Library' section should now disappear Signed-off-by: Hector Castro Works as advertised Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index ce9393de84..609ea452c9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -113,7 +113,10 @@
- [% UNLESS hidden.defined('branchcode') %] + [% UNLESS + ( hidden.defined('cardnumber') || ( !borrower && Koha.Preference('autoMemberNum') ) ) && + hidden.defined('dateexpiry') && hidden.defined('branchcode') && hidden.defined('categorycode') + %]
Library -- 2.39.5