From 0c20319f4ca6fbbb8a627cb19f02541317a4f2a5 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Fri, 27 Sep 2024 12:28:01 +0100 Subject: [PATCH] [7.x] Fix missing title on fieldtype dropdown options (#617) --- src/Http/Resources/CP/ListedModel.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Http/Resources/CP/ListedModel.php b/src/Http/Resources/CP/ListedModel.php index 5e660449..492a21af 100644 --- a/src/Http/Resources/CP/ListedModel.php +++ b/src/Http/Resources/CP/ListedModel.php @@ -43,6 +43,7 @@ public function toArray($request): array return [ 'id' => $model->getKey(), + 'title' => $model->getAttribute($this->runwayResource->titleField()), 'published' => $this->resource->published(), 'status' => $this->resource->publishedStatus(), 'edit_url' => $model->runwayEditUrl(),