We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8ae4be + 24e8f42 commit 5fceb41Copy full SHA for 5fceb41
2 files changed
wcfsetup/install/files/lib/system/gridView/AbstractGridView.class.php
@@ -768,6 +768,10 @@ protected function validate(): void
768
if ($titleColumn === null) {
769
throw new \InvalidArgumentException("Missing title column in grid view with id '{$this->getID()}'.");
770
}
771
+
772
+ if ($this->getPageNo() > 1 && $this->getPageNo() > $this->countPages()) {
773
+ $this->setPageNo($this->countPages() ?: 1);
774
+ }
775
776
777
/**
wcfsetup/install/files/lib/system/listView/AbstractListView.class.php
@@ -276,6 +276,10 @@ protected function validate(): void
276
277
278
279
280
281
282
283
284
285
protected function getSqlOrderBy(): string
0 commit comments