]> git.koha-community.org Git - koha.git/commit
Bug 35418: Fix _get_usage_months
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 28 Nov 2023 13:24:49 +0000 (13:24 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 29 Nov 2023 20:36:11 +0000 (17:36 -0300)
commit9988925fb5bb1c08bf3cee5dbb574b1f195037f9
treec6c5a38bf7714914a2c5d2e8e9e3366aca8d786e
parent684d9263e8e116e2def9e66d0901fedcbfa41968
Bug 35418: Fix _get_usage_months

No longer falls in an endless loop if the last month in the report period is december.

Test plan:
1) Apply just the tests patch, run EUsage tests
prove t/db_dependent/Koha/ERM/EUsage/
2) Wait for a few seconds. Notice SushiCounter.t it hangs. CTRL+C (cancel it)
3) Apply the fix patch.
4) Run the tests again. Notice all EUsage tests pass with no issues.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/ERM/EUsage/SushiCounter.pm