mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fix: optional return value for paginator state
`$state->getData()->getData('GridFieldPaginator')' (line 598) returns null by default.
This commit is contained in:
parent
3564f98c9c
commit
bb8e3b8386
@ -587,7 +587,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
||||
/**
|
||||
* Get the current paginator state
|
||||
*/
|
||||
private function getGridFieldPaginatorState(): GridState_Data
|
||||
private function getGridFieldPaginatorState(): ?GridState_Data
|
||||
{
|
||||
$state = $this->getGridField()->getState(false);
|
||||
$gridStateStr = $this->getStateManager()->getStateFromRequest($this->gridField, $this->getRequest());
|
||||
|
Loading…
Reference in New Issue
Block a user