Set out some roach traps to catch all these 🐛
This commit is contained in:
parent
336234843d
commit
2e134b7a55
8 changed files with 24 additions and 25 deletions
|
@ -181,7 +181,7 @@ class AjaxController extends Controller
|
|||
}
|
||||
|
||||
try {
|
||||
$allocation = $server->allocations->where('id', $request->input('allocation'))->where('assigned_to', $server->id)->first();
|
||||
$allocation = $server->allocations->where('id', $request->input('allocation'))->where('server_id', $server->id)->first();
|
||||
if (! $allocation) {
|
||||
return response()->json([
|
||||
'error' => 'No allocation matching your request was found in the system.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue