Fixed custom field edit screen

This commit is contained in:
snipe 2019-05-22 01:07:14 -07:00
parent 0dfc28b0e8
commit 12ec2d1f7a

View file

@ -44,7 +44,7 @@ class CustomFieldsetsController extends Controller
$custom_fields_list = ["" => "Add New Field to Fieldset"] + CustomField::pluck("name", "id")->toArray(); $custom_fields_list = ["" => "Add New Field to Fieldset"] + CustomField::pluck("name", "id")->toArray();
$maxid = 0; $maxid = 0;
foreach ($cfset->fields() as $field) { foreach ($cfset->fields as $field) {
if ($field->pivot->order > $maxid) { if ($field->pivot->order > $maxid) {
$maxid=$field->pivot->order; $maxid=$field->pivot->order;
} }