https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41792

--- Comment #3 from Gretchen Maxeiner <[email protected]> ---
Created attachment 211683
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211683&action=edit
Bug 41792: Exclude the empty circulation rule row from the count

The circulation and fine rules table counts the empty edit row, so the
DataTables info text is always one higher than the number of saved rules.
Leave the row in place and exclude it from the info text.

This is my first patch.

Test plan:
1. Go to Administration > Circulation and fine rules.
2. With one saved rule, note that the info text counts the empty row too.
3. Apply the patch and restart Plack.
4. The info text counts only the saved rule, for example "Showing 1 to 1 of 1
entries".
5. The empty row remains visible at the bottom of the table.
6. Edit a saved rule and confirm its values are copied into the empty row.

Assisted-by: Grok 4.7 (SpaceXAI)
Signed-off-by: Gretchen Maxeiner <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to