Bug 35251: Update checkout count when refreshing issue table

1. Have some checkouts
2. Go to the issue-table and select some of those checkouts and check them in.
3. Look at the tab, Checkouts(X)
4. This is not updated and now shows an incorrect number of checkouts.
4. APPLY PATCH, clear browser cache/
5. Try again, now when the table reloads the 'Checkouts(X)' tab should be correctly updated.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lucas Gass 2023-11-03 16:51:11 +00:00 committed by Tomas Cohen Arazi
parent 41daf4db99
commit 0faa48e89a
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@
[% WRAPPER tabs id= "finesholdsissues" %]
[% WRAPPER tabs_nav %]
[% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %]
<span>Checkouts ([% issuecount || 0 | html %])</span>
<span>Checkouts (<span class="checkout_count">[% issuecount || 0 | html %]</span>)</span>
[% END %]
[% IF relatives_issues_count %]

View File

@ -316,6 +316,8 @@ $(document).ready(function() {
$('.checkin[value="'+checked+'"]').prop('checked' , true );
});
}
var checkout_count = table.page.info().recordsTotal;
$('.checkout_count').text(checkout_count);
});
}