In page /cgi-bin/koha/circ/pendingreserves.pl if you have multiple different libraries and want to use the Libraries filter in the bottom of the page it doesn't work because of the following Javascript error: > Uncaught TypeError: $(...).child is not a function This is regression from bug 24488.
Created attachment 116880 [details] [review] Bug 27706: (bug 24488 follow-up) Fix libraries column filter From commit 2285c2d65752dcc899d3fdcff634e6927a1cbbf0 Bug 24488: Show correct first patron details on Holds to pull $('select', this).change( function () { - var filter_value = $(this).val(); - holdst.fnFilter( filter_value, 5, true ); + holdst.fnFilter( $(this).child().val(), 5 ); }); This does not make sense, we need to filter on $(this).val(), it's a select element. Test plan: Place some holds Hit the pending holds page Use the "libraries" column filter and confirm that it works correctly
Created attachment 116885 [details] [review] Bug 27706: (bug 24488 follow-up) Fix libraries column filter From commit 2285c2d65752dcc899d3fdcff634e6927a1cbbf0 Bug 24488: Show correct first patron details on Holds to pull $('select', this).change( function () { - var filter_value = $(this).val(); - holdst.fnFilter( filter_value, 5, true ); + holdst.fnFilter( $(this).child().val(), 5 ); }); This does not make sense, we need to filter on $(this).val(), it's a select element. Test plan: Place some holds Hit the pending holds page Use the "libraries" column filter and confirm that it works correctly Signed-off-by: Andrew Nugged <nugged@gmail.com>
Created attachment 116886 [details] [review] Bug 27706: (bug 24488 follow-up) Fix libraries column filter From commit 2285c2d65752dcc899d3fdcff634e6927a1cbbf0 Bug 24488: Show correct first patron details on Holds to pull $('select', this).change( function () { - var filter_value = $(this).val(); - holdst.fnFilter( filter_value, 5, true ); + holdst.fnFilter( $(this).child().val(), 5 ); }); This does not make sense, we need to filter on $(this).val(), it's a select element. Test plan: Place some holds Hit the pending holds page Use the "libraries" column filter and confirm that it works correctly Signed-off-by: Andrew Nugged <nugged@gmail.com> Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Pushed to master for 21.05, thanks to everybody involved!
Depends on Bug 24488 not in 20.11.x