From 12ec2d1f7a7d17b60e621f86b3ca1880c7ea1615 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 22 May 2019 01:07:14 -0700 Subject: [PATCH] Fixed custom field edit screen --- app/Http/Controllers/CustomFieldsetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/CustomFieldsetsController.php b/app/Http/Controllers/CustomFieldsetsController.php index fa46263487..c8138d4466 100644 --- a/app/Http/Controllers/CustomFieldsetsController.php +++ b/app/Http/Controllers/CustomFieldsetsController.php @@ -44,7 +44,7 @@ class CustomFieldsetsController extends Controller $custom_fields_list = ["" => "Add New Field to Fieldset"] + CustomField::pluck("name", "id")->toArray(); $maxid = 0; - foreach ($cfset->fields() as $field) { + foreach ($cfset->fields as $field) { if ($field->pivot->order > $maxid) { $maxid=$field->pivot->order; }