mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-11 19:48:41 +00:00
Fix view bug
This commit is contained in:
parent
5758616eba
commit
cf7ed41cfd
|
|
@ -15,7 +15,7 @@ declare(strict_types=1);
|
||||||
use phpOMS\Uri\UriFactory;
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \Web\Backend\Views\TableView $this
|
* @var \phpOMS\Views\View $this
|
||||||
* @var \Modules\Audit\Models\Audit[] $audits
|
* @var \Modules\Audit\Models\Audit[] $audits
|
||||||
*/
|
*/
|
||||||
$audits = $this->data['audits'] ?? [];
|
$audits = $this->data['audits'] ?? [];
|
||||||
|
|
@ -28,12 +28,12 @@ $tableView->setObjects($audits);
|
||||||
|
|
||||||
$previous = $tableView->getPreviousLink(
|
$previous = $tableView->getPreviousLink(
|
||||||
$this->request,
|
$this->request,
|
||||||
empty($this->objects) || !$this->getData('hasPrevious') ? null : \reset($this->objects)
|
empty($tableView->objects) || !$this->getData('hasPrevious') ? null : \reset($tableView->objects)
|
||||||
);
|
);
|
||||||
|
|
||||||
$next = $tableView->getNextLink(
|
$next = $tableView->getNextLink(
|
||||||
$this->request,
|
$this->request,
|
||||||
empty($this->objects) ? null : \end($this->objects),
|
empty($tableView->objects) ? null : \end($tableView->objects),
|
||||||
$this->getData('hasNext') ?? false
|
$this->getData('hasNext') ?? false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user