Bug 36825: Hide "Protected" field via BorrowerUnwantedField syspref
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Fri, 10 May 2024 05:31:42 +0000 (08:31 +0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 29 May 2024 12:36:07 +0000 (14:36 +0200)
commitebf17477c072559edea84a484b94374d1f44bf0c
tree0e8ef5b1af6dc9648da2f7458c28320d80181f06
parentefcc5f576d84e4108dfa03a33558ba0b2aa4e3ca
Bug 36825: Hide "Protected" field via BorrowerUnwantedField syspref

Setting field "Protected" as hidden in patron entry/modification
form via BorrowerUnwantedField syspref doesn't work. Form is
missing condition "UNLESS noprotected".

To test:
1. From BorrowerUnwantedField, check field "Protected" as hidden.
2. Either attempt to create a new patron or modify existing one.
=> Note that "Protected" is still displayed in the form.
3. Apply this patch.
4. Navigate back to create/modify patron form.
=> Note that "Protected" is no longer displayed.
5. Uncheck field "Protected" from BorrowerUnwantedField.
=> Field should now be displayed in create/modify form.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a0b1ee7df30a191a65fc44020bbe18dd69366ce2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt