fixed view from sending all custom fields
This commit is contained in:
parent
df5cacf8a2
commit
96b3af7cbc
2 changed files with 4 additions and 4 deletions
|
@ -790,10 +790,9 @@ class SettingsController extends Controller
|
||||||
*/
|
*/
|
||||||
public function getLabels()
|
public function getLabels()
|
||||||
{
|
{
|
||||||
return view('settings.labels', [
|
return view('settings.labels')
|
||||||
'setting' => Setting::getSettings(),
|
->with('setting', Setting::getSettings())
|
||||||
'customFields' => CustomField::all(),
|
->with('customFields', CustomField::where('field_encrypted', '=', 0)->get());
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -348,6 +348,7 @@
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Custom Fields">
|
<optgroup label="Custom Fields">
|
||||||
@foreach($customFields as $customField)
|
@foreach($customFields as $customField)
|
||||||
|
|
||||||
<option value="{{ $customField->db_column }}">{{ $customField->name }}</option>
|
<option value="{{ $customField->db_column }}">{{ $customField->name }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue