A free open source IT asset/license management system
fixed view from sending all custom fields
Godfrey M96b3af7cbc31
diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.phpindex b1cb620a83..ddac876885 100755--- a/app/Http/Controllers/SettingsController.php+++ b/app/Http/Controllers/SettingsController.php@@ -790,10 +790,9 @@ class SettingsController extends Controller*/public function getLabels(){- return view('settings.labels', [- 'setting' => Setting::getSettings(),- 'customFields' => CustomField::all(),- ]);+ return view('settings.labels')+ ->with('setting', Setting::getSettings())+ ->with('customFields', CustomField::where('field_encrypted', '=', 0)->get());}/**diff --git a/resources/views/partials/label2-field-definitions.blade.php b/resources/views/partials/label2-field-definitions.blade.phpindex 8d8c680c94..26c1fb43ae 100644--- a/resources/views/partials/label2-field-definitions.blade.php+++ b/resources/views/partials/label2-field-definitions.blade.php@@ -348,6 +348,7 @@</optgroup><optgroup label="Custom Fields">@foreach($customFields as $customField)+<option value="{{ $customField->db_column }}">{{ $customField->name }}</option>@endforeach</optgroup>