Skip to content

Commit

Permalink
add showPageNumbers for relations
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Apr 4, 2024
1 parent 609ad74 commit f102684
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/backend/behaviors/RelationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ protected function makeViewWidget()
$config->showSorting = $this->getConfig('view[showSorting]', true);
$config->defaultSort = $this->getConfig('view[defaultSort]');
$config->recordsPerPage = $this->getConfig('view[recordsPerPage]');
$config->showPageNumbers = $this->getConfig('view[showPageNumbers]', false);
$config->showCheckboxes = $this->getConfig('view[showCheckboxes]', !$this->readOnly);
$config->recordUrl = $this->getConfig('view[recordUrl]');
$config->customViewPath = $this->getConfig('view[customViewPath]');
Expand Down Expand Up @@ -820,6 +821,7 @@ protected function makeManageWidget()
$config->showSorting = $this->getConfig('manage[showSorting]', !$isPivot);
$config->defaultSort = $this->getConfig('manage[defaultSort]');
$config->recordsPerPage = $this->getConfig('manage[recordsPerPage]');
$config->showPageNumbers = $this->getConfig('manage[showPageNumbers]', false);
$config->noRecordsMessage = $this->getConfig('manage[noRecordsMessage]');

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

0 comments on commit f102684

Please sign in to comment.