From 6b3207377a4d6ecffc36b9cbbc12cdf306957fba Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" <74361521+FatihKoz@users.noreply.github.com> Date: Thu, 28 Jan 2021 16:31:29 +0300 Subject: [PATCH] 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 --- app/Http/Controllers/Frontend/ProfileController.php | 2 +- resources/views/layouts/default/profile/index.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Frontend/ProfileController.php b/app/Http/Controllers/Frontend/ProfileController.php index 8b39f4fc..92c3f437 100644 --- a/app/Http/Controllers/Frontend/ProfileController.php +++ b/app/Http/Controllers/Frontend/ProfileController.php @@ -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, diff --git a/resources/views/layouts/default/profile/index.blade.php b/resources/views/layouts/default/profile/index.blade.php index 05336dfc..3b24e72b 100644 --- a/resources/views/layouts/default/profile/index.blade.php +++ b/resources/views/layouts/default/profile/index.blade.php @@ -171,7 +171,7 @@
| {{ $field->name }} | {{ $field->value }} |