mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
FIX: Transfrom editable columns to readonly on a readonly gridfield also.
This commit is contained in:
parent
08f89ea4b5
commit
229a23a2f4
@ -100,7 +100,7 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
|
|||||||
$field->setName($this->getFieldName($field->getName(), $grid, $record));
|
$field->setName($this->getFieldName($field->getName(), $grid, $record));
|
||||||
$field->setValue($value);
|
$field->setValue($value);
|
||||||
|
|
||||||
if (!$record->canEdit()) {
|
if ($grid->isReadonly() || !$record->canEdit()) {
|
||||||
$field = $field->performReadonlyTransformation();
|
$field = $field->performReadonlyTransformation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user