Skip to content

Commit 8f0ddbf

Browse files
authored
Use augmented values to make the title (#734)
1 parent 976929c commit 8f0ddbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Resources/CP/FieldtypeModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ protected function makeTitle($model): ?string
3535
if (! $titleFormat = $this->fieldtype->config('title_format')) {
3636
$firstListableColumn = $this->resource->runwayResource()->titleField();
3737

38-
return $model->getAttribute($firstListableColumn);
38+
return $model->augmentedValue($firstListableColumn);
3939
}
4040

41-
return Parse::template($titleFormat, $model);
41+
return Parse::template($titleFormat, $model->toAugmentedArray());
4242
}
4343
}

0 commit comments

Comments
 (0)