Fix logic since this accepts arrays now
This commit is contained in:
parent
25e53d9f22
commit
a2548c14ac
1 changed files with 2 additions and 2 deletions
|
@ -114,8 +114,8 @@ class ServerTransferController extends Controller
|
|||
$transfer->new_node = $node_id;
|
||||
$transfer->old_allocation = $server->allocation_id;
|
||||
$transfer->new_allocation = $allocation_id;
|
||||
$transfer->old_additional_allocations = json_encode($server->allocations->where('id', '!=', $server->allocation_id)->pluck('id'));
|
||||
$transfer->new_additional_allocations = json_encode($additional_allocations);
|
||||
$transfer->old_additional_allocations = $server->allocations->where('id', '!=', $server->allocation_id)->pluck('id');
|
||||
$transfer->new_additional_allocations = $additional_allocations;
|
||||
|
||||
$transfer->save();
|
||||
|
||||
|
|
Loading…
Reference in a new issue