Fix readonly grid state always being truthy (#8562)

This commit is contained in:
Luke Edwards 2018-11-02 14:28:47 +13:00 committed by Aaron Carlino
parent 8866e7674a
commit 97180c2612

View File

@ -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();