Bug 17117: Patron personal details not displayed unless branch update request is...
authorJacek Ablewicz <abl@biblos.pk.edu.pl>
Fri, 12 Aug 2016 14:19:52 +0000 (16:19 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 18 Aug 2016 15:59:42 +0000 (15:59 +0000)
commitfb449aaede3f23ee71e9e50286a26035bb3ef640
treeb439eb149e176e84649f632d91c227776b3d3784
parent1bc34e31e9c371d8f60a074f13e933d15a31e20e
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 <hector.hecaxmmx@gmail.com>
Works as advertised

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt