Bug 36428: (QA follow-up) Add bookings_count class to patron details

Somewhere along the line we lost the 'bookings_count' class in the
bookings tab display on the patron details and circulation page.

This patch restores is and as such also restores the correct count
numbers on 'place booking' and 'cancel booking' actions on those pages.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ecd1b3fc02)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2024-06-20 11:13:10 +01:00 committed by Lucas Gass
parent bb44f6971d
commit 8f90db7413

View file

@ -31,7 +31,7 @@
[% END %]
[% WRAPPER tab_item tabname="bookings" %]
[% SET bookings_count = patron.bookings.filter_by_active.count %]
<span>Bookings ([% bookings_count || 0 | html %])</span>
<span class="bookings_count">Bookings ([% bookings_count || 0 | html %])</span>
[% END %]
[% END %]