Skip to content

Commit

Permalink
fix: product description showing up instead of name in two locations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
S0ly authored May 22, 2024
2 parents 9c44e38 + da622b8 commit 396d255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function dataTable(Request $request)
return '<a href="' . route('admin.users.show', $server->user->id) . '">' . $server->user->name . '</a>';
})
->addColumn('resources', function (Server $server) {
return $server->product->description;
return $server->product->name;
})
->addColumn('actions', function (Server $server) {
$suspendColor = $server->isSuspended() ? 'btn-success' : 'btn-warning';
Expand Down

0 comments on commit 396d255

Please sign in to comment.