Skip to content

Commit 49c8529

Browse files
authored
Add showPageNumbers for relations (#1095)
1 parent 609ad74 commit 49c8529

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/backend/behaviors/RelationController.php

+2
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ protected function makeViewWidget()
669669
$config->showSorting = $this->getConfig('view[showSorting]', true);
670670
$config->defaultSort = $this->getConfig('view[defaultSort]');
671671
$config->recordsPerPage = $this->getConfig('view[recordsPerPage]');
672+
$config->showPageNumbers = $this->getConfig('view[showPageNumbers]', false);
672673
$config->showCheckboxes = $this->getConfig('view[showCheckboxes]', !$this->readOnly);
673674
$config->recordUrl = $this->getConfig('view[recordUrl]');
674675
$config->customViewPath = $this->getConfig('view[customViewPath]');
@@ -820,6 +821,7 @@ protected function makeManageWidget()
820821
$config->showSorting = $this->getConfig('manage[showSorting]', !$isPivot);
821822
$config->defaultSort = $this->getConfig('manage[defaultSort]');
822823
$config->recordsPerPage = $this->getConfig('manage[recordsPerPage]');
824+
$config->showPageNumbers = $this->getConfig('manage[showPageNumbers]', false);
823825
$config->noRecordsMessage = $this->getConfig('manage[noRecordsMessage]');
824826

825827
if ($this->viewMode === 'single') {

0 commit comments

Comments
 (0)