https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43809 --- Comment #2 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 208193 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208193&action=edit Bug 43809: Record illreq_created for requests created by any ILL backend illreq_created was only recorded when a backend called after_created itself, which the Standard backend does, but other plugins may not. Core now calls after_created once the backend has created the request, from backend_create and the REST API. A request gets at most one illreq_created, so backends calling it themselves are not counted twice. Test plan: 1) Install the test backend plugin from: https://github.com/openfifth/koha-ill-backend-plugin/releases 2) Enable ILLModule 3) Create a request with the plugin backend at: http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=PluginBackend 4) Check its statistics, notice there is none: SELECT * FROM statistics WHERE illrequest_id = <id> AND type = 'illreq_created'; 5) Create a Standard request at: http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard 6) Repeat 4) for that request, notice there is one row 7) Apply patch, restart_all 8) Repeat 3) and 4). Notice there is now one row 9) Repeat 5) and 6). Notice there is still exactly one row 10) Run tests, notice they pass: k$ prove t/db_dependent/Koha/Plugins/ILL/Backends.t t/db_dependent/api/v1/ill_requests.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.