mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix readonly grid state always being truthy (#8562)
This commit is contained in:
parent
8866e7674a
commit
97180c2612
@ -1029,7 +1029,7 @@ class GridField extends FormField
|
||||
}
|
||||
|
||||
if ($request->getHeader('X-Pjax') === 'CurrentField') {
|
||||
if ($this->getState()->Readonly) {
|
||||
if ($this->getState()->Readonly === true) {
|
||||
$this->performDisabledTransformation();
|
||||
}
|
||||
return $this->FieldHolder();
|
||||
|
Loading…
Reference in New Issue
Block a user