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:
+2
-1
@@ -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(
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user