Skip to content

Commit

Permalink
Fix missing user reference for lists and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Sep 29, 2024
1 parent 2d0cf0a commit 3021d5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/Models/LinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function create(): View
return view('models.links.create', [
'pageTitle' => trans('link.add'),
'existing_link' => null,
'all_tags' => Tag::visibleForUser()->get(['name', 'id']),
'all_lists' => LinkList::visibleForUser()->get(['name', 'id']),
'all_tags' => Tag::visibleForUser()->with('user:id,name')->get(['name', 'id', 'user_id']),
'all_lists' => LinkList::visibleForUser()->with('user:id,name')->get(['name', 'id', 'user_id']),
]);
}

Expand Down Expand Up @@ -126,8 +126,8 @@ public function edit(Link $link): View
'pageTitle' => trans('link.edit') . ': ' . $link->shortTitle(),
'link' => $link,
'existing_link' => null,
'all_tags' => Tag::visibleForUser()->get(['name', 'id']),
'all_lists' => LinkList::visibleForUser()->get(['name', 'id']),
'all_tags' => Tag::visibleForUser()->with('user:id,name')->get(['name', 'id', 'user_id']),
'all_lists' => LinkList::visibleForUser()->with('user:id,name')->get(['name', 'id', 'user_id']),
]);
}

Expand Down

0 comments on commit 3021d5d

Please sign in to comment.