mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10631 from xini/patch-5
fix: optional return value for paginator state
This commit is contained in:
commit
62f71a321d
@ -587,7 +587,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
|||||||
/**
|
/**
|
||||||
* Get the current paginator state
|
* Get the current paginator state
|
||||||
*/
|
*/
|
||||||
private function getGridFieldPaginatorState(): GridState_Data
|
private function getGridFieldPaginatorState(): ?GridState_Data
|
||||||
{
|
{
|
||||||
$state = $this->getGridField()->getState(false);
|
$state = $this->getGridField()->getState(false);
|
||||||
$gridStateStr = $this->getStateManager()->getStateFromRequest($this->gridField, $this->getRequest());
|
$gridStateStr = $this->getStateManager()->getStateFromRequest($this->gridField, $this->getRequest());
|
||||||
|
Loading…
Reference in New Issue
Block a user