mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed custom field edit screen
This commit is contained in:
parent
0dfc28b0e8
commit
12ec2d1f7a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue