FIX: Transfrom editable columns to readonly on a readonly gridfield also.

This commit is contained in:
Sam Minnee 2020-08-16 15:21:54 +12:00
parent 08f89ea4b5
commit 229a23a2f4

View File

@ -100,7 +100,7 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
$field->setName($this->getFieldName($field->getName(), $grid, $record));
$field->setValue($value);
if (!$record->canEdit()) {
if ($grid->isReadonly() || !$record->canEdit()) {
$field = $field->performReadonlyTransformation();
}