From 8a45c87ae07d212bc55094d518886aec652b8331 Mon Sep 17 00:00:00 2001 From: Petchesi-Iulian Date: Mon, 23 May 2022 13:06:46 +0300 Subject: [PATCH 1/2] Added variable batch size for redirects control panel. --- Products/CMFPlone/controlpanel/browser/redirects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/CMFPlone/controlpanel/browser/redirects.py b/Products/CMFPlone/controlpanel/browser/redirects.py index c84c710305..4e84068755 100644 --- a/Products/CMFPlone/controlpanel/browser/redirects.py +++ b/Products/CMFPlone/controlpanel/browser/redirects.py @@ -271,7 +271,7 @@ def redirects(self): created=self.request.form.get('datetime', ''), manual=self.request.form.get('manual', ''), ), - 15, + int(self.request.form.get('b_size', '15')), int(self.request.form.get('b_start', '0')), orphan=1, ) From e58b1a6c5c36b49b5a6a9ff4a0715ca2f8eacbe7 Mon Sep 17 00:00:00 2001 From: Petchesi-Iulian Date: Mon, 23 May 2022 13:15:42 +0300 Subject: [PATCH 2/2] Add news item. --- news/1178.feature | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 news/1178.feature diff --git a/news/1178.feature b/news/1178.feature new file mode 100644 index 0000000000..af995d9515 --- /dev/null +++ b/news/1178.feature @@ -0,0 +1,2 @@ +Added customisable batch_size for redirects controlpanel +[iulianpetchesi]