From cec13b7538f4d64b314568c0f7bf7a16c8528d7e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 12 Jun 2019 15:58:19 +0200 Subject: [PATCH] #2810 --- src/app/Magic/Fields/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Magic/Fields/Model.php b/src/app/Magic/Fields/Model.php index da06a40..33cef15 100644 --- a/src/app/Magic/Fields/Model.php +++ b/src/app/Magic/Fields/Model.php @@ -29,6 +29,6 @@ class Model extends Field $modelClass = $this->getAttribute('optionsmodel'); $inst = new $modelClass(); - return $modelClass::all()->pluck($this->getAttribute('attribute'), $inst->getPrimaryKey()); + return $modelClass::all()->pluck($this->getAttribute('attribute'), $inst->getPrimaryKey())->toArray(); } } -- 2.39.5