Do not set s nor p parameter to export URL if screen has no limit

Closes #12212
(grafted from 9356e9d17de966478109068ff458d68aa86e811a)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2023-04-12 18:40:49 +02:00
parent 1076ad75fe
commit 2aeb4c8412
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1994,7 +1994,8 @@
} else {
domain = this.screen.search_domain(
this.screen.screen_container.get_text());
if (!this.ignore_search_limit.prop('checked')) {
if (!this.ignore_search_limit.prop('checked') &&
this.screen.limit !== null) {
query_string.push(['s', this.screen.limit.toString()]);
query_string.push(
['p', Math.floor(
+2 -1
View File
@@ -468,7 +468,8 @@ class WinExport(WinCSV):
else:
domain = self.screen.search_domain(
self.screen.screen_container.get_text())
if not self.ignore_search_limit.get_active():
if (not self.ignore_search_limit.get_active()
and self.screen.limit is not None):
query_string.append(('s', str(self.screen.limit)))
query_string.append(
('p', str(self.screen.offset // self.screen.limit)))