]> git.koha-community.org Git - koha.git/commit
Bug 25946: borrowerRelationship can be empty
authorPetro Vashchuk <stalkernoid@gmail.com>
Tue, 30 Mar 2021 11:42:11 +0000 (14:42 +0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 7 Apr 2021 09:42:20 +0000 (11:42 +0200)
commit56bb14990f186c6abb3b2d87ec23dc05bbeae3e1
tree4482a3c1bda85da4612de665462af0ab0833a5d1
parent0cd7a8cedbeb825e1353e8f57e15cc2d79b32d7c
Bug 25946: borrowerRelationship can be empty

Do not show the empty dropdown with no options if borrowerRelationship
is disabled (empty) in the syspref.

To reproduce:
    1) Go to system preferences and disable borrowerRelationship.
    2) Create a new patron or modify the existing one.
    3) Under "Guarantor Information" click on "Search to add" button.
    After performing the search, select different patron to act as
    guarantor.
    4) Observe that there's empty dropdown for the relation type.
    5) Apply the patch.
    6) Repeat steps above.
    7) Observe that dropdown is no longer there.

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 8245bc6f2de7276d7e98788b115e3b983c915941)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt