We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 187fa61 + c7fb5a5 commit 600ae4bCopy full SHA for 600ae4b
1 file changed
code/GridFieldEditableColumns.php
@@ -30,7 +30,8 @@ public function getColumnContent($grid, $record, $col) {
30
31
$fields = $this->getForm($grid, $record)->Fields();
32
$value = $grid->getDataFieldValue($record, $col);
33
- $field = clone $fields->fieldByName($col);
+ $rel = (strpos($col,'.') === false); // field references a relation value
34
+ $field = ($rel) ? clone $fields->fieldByName($col) : new ReadonlyField($col);
35
36
if(!$field) {
37
throw new Exception("Could not find the field '$col'");
0 commit comments