Skip to content

Commit

Permalink
Merge pull request ploi#243 from ploi/boards-are-not-assigned
Browse files Browse the repository at this point in the history
Boards are not assigned
  • Loading branch information
Cannonb4ll authored Oct 31, 2023
2 parents 02e3a37 + 2a7508d commit 15c9e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Livewire/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public function submitItemAction(): Action
$item = Item::create([
'title' => $data['title'],
'content' => $data['content'],
'project_id' => $data['project_id'] ?? null
'project_id' => $data['project_id'] ?? null,
'board_id' => $data['board_id'] ?? null
]);

$item->user()->associate(auth()->user())->save();
Expand Down

0 comments on commit 15c9e52

Please sign in to comment.