]> git.koha-community.org Git - koha.git/commit
Bug 29736: Don't return empty clubs
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Dec 2021 14:14:56 +0000 (15:14 +0100)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Fri, 11 Feb 2022 22:02:01 +0000 (23:02 +0100)
commit8691aae755255995cc96a89bd418c9e87368af03
treeb5613335b26453459bf2c8dc77cea390ac2382e6
parentdf22d207f267e60a00126ce1a0965241dd9771e4
Bug 29736: Don't return empty clubs

There is an error when placing a hold for a club without members:
Uncaught TypeError: err.responseJSON.error is undefined

It seems that we should remove clubs without members from the search.

Test plan:
Create 1 club xx with 2 patrons
Create 1 club xxx with 1 patron and cancel their enrolment
Create 1 club xxxx without patron

Place a hold for club "x", only the first one should be returned with
this patch.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b45e67e03eeffdaa006c693e2e6426d452cbb09e)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 4520178095b3bfe1e9ba976b2798721f96635052)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/Clubs.pm
reserve/request.pl
t/db_dependent/Clubs.t