From 700c602634390f34a3fac86c158d95b30bc03963 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit fb449aaede3f23ee71e9e50286a26035bb3ef640) Signed-off-by: Frédéric Demians --- 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 4fa05735ee..62762feb92 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