Bug 25615: Remove empty entries in the filter dropdowns of "holds to pull"
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 May 2020 10:11:37 +0000 (12:11 +0200)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Fri, 3 Jul 2020 05:13:11 +0000 (07:13 +0200)
commit2ddae7366c4247609b9ea561f655b4e5267ddbf1
treea1a3972245ec578c5a9a55b9b2afbdefbcad9684
parent525ca46cc7a89f23d816de7e5aee9c3a67b8392d
Bug 25615: Remove empty entries in the filter dropdowns of "holds to pull"

On the "Holds to pull" view there are filters that are built on the
value of the cells.
Bug 22536 improved the ergonomic by adding a ul list, but the filters
are now broken, the ul and li tags are retrieved and put in the filter
list.

The idea of this patch is to remove the HTML tags and skip if the value
is then empty.

Test plan:
Place a hold on an item
Go to Home › Circulation › Holds to pull
Open the "libraries" filter
=> Without this patch you see empty entries
=> With this patch the filter contain only the libraries

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4f70682c56dddd42f24c62d7634f5cd3b7119702)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 58c071fad3f63de8e069baa84ddea9656e689913)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit d680ae35f39c0eb413b45339aadfa9148a58ed55)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt