]> git.koha-community.org Git - koha.git/commit
Bug 25137: (bug 23084 follow-up) Fix incorrect grep ternary condition
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 14 Apr 2020 10:00:01 +0000 (12:00 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 15 Apr 2020 07:35:04 +0000 (08:35 +0100)
commitcc6c3f581593e4b9c6e31b5209c95d01f7a30ae4
tree5d8b809311a88f62c952e5ed688b3e6cf0631451
parent909e172c17d0bb69fa9f9a25bf7d075b7dcc99c2
Bug 25137: (bug 23084 follow-up) Fix incorrect grep ternary condition

The lack of parenthesis makes the condition evaluated wrong.

Test plan:
- confirm you have a branch with code X
- enter X in PatronSelfRegistrationLibraryList
- go to cgi-bin/koha/opac-memberentry.pl (either as a logged in patron or as a self-reg patron)
- confirm branch dropdown is not empty and contain X
- empty out PatronSelfRegistrationLibraryList
- reload cgi-bin/koha/opac-memberentry.pl and confirm branches show

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
opac/opac-memberentry.pl