Fix Profile Fields (#1013)
* Fix Profile Fields PR fixes two issues ; 1. Profile Fields not showing up on user profile 2. Profile Fields not showing up on user.profile.edit Profile.index was looking for "public" to be true, while controller was sending "private" and it was not boolean. Also profile controller was not sending the fields to the blade. Both fixed and working now * Update index.blade.php
This commit is contained in:
@@ -122,7 +122,7 @@ class ProfileController extends Controller
|
||||
|
||||
$airlines = $this->airlineRepo->selectBoxList();
|
||||
$airports = $this->airportRepo->selectBoxList(false, setting('pilots.home_hubs_only'));
|
||||
$userFields = $this->userRepo->getUserFields($user, false);
|
||||
$userFields = $this->userRepo->getUserFields($user, true);
|
||||
|
||||
return view('profile.edit', [
|
||||
'user' => $user,
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
<div class="col-sm-12">
|
||||
<table class="table table-full-width">
|
||||
@foreach($userFields as $field)
|
||||
@if($field->public === true)
|
||||
@if(!$field->private)
|
||||
<tr>
|
||||
<td>{{ $field->name }}</td>
|
||||
<td>{{ $field->value }}</td>
|
||||
|
||||
Reference in New Issue
Block a user