From e64531ea93286535b6a5b49b1b98dd74e1aac372 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 25 Feb 2026 11:33:11 -0500 Subject: [PATCH] Bug 41918: Add ability to disable or change limit via config xml This commit add the option duplicate_running_reports_per_user_limit to koha-conf.xml. If this option is empty or 0, the feature is disabled. If this option is enabled, Koha will limit the number of times a given report can be run of a single Koha user. Test Plan: 1) Apply this patch 2) Set duplicate_running_reports_per_user_limit to 1, verify previous behavior is maintained 2) Set duplicate_running_reports_per_user_limit to 0, verify the feature is disabled 3) Set duplicate_running_reports_per_user_limit to 2, verify Koha limits the number of duplicates of the report to the number specified in duplicate_running_reports_per_user_limit --- debian/templates/koha-conf-site.xml.in | 3 +++ etc/koha-conf.xml | 3 +++ reports/guided_reports.pl | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index 5edefab8b25..b51ff2bdb2f 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -340,6 +340,9 @@ __END_SRU_PUBLICSERVER__ 50 2 + + 0 + + 0 +