From b7f77b0b4e00de95835be4e788a7e813fd55ebe6 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 9 May 2024 18:32:20 +0200 Subject: [PATCH] Fix Model search --- src/Concerns/CanSetupWorkflows.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/CanSetupWorkflows.php b/src/Concerns/CanSetupWorkflows.php index af86587..92d35c0 100644 --- a/src/Concerns/CanSetupWorkflows.php +++ b/src/Concerns/CanSetupWorkflows.php @@ -113,7 +113,7 @@ public static function getModelOptions(?Model $model, string $search = ''): arra return [ $model->getKey() => $model->getTitelAttributeForWorkflow(), ]; - }); + })->toArray(); } return $model::take($iMaxResults)->get()->mapWithKeys(function ($model) {