Skip to content

Commit a2548c1

Browse files
committed
Fix logic since this accepts arrays now
1 parent 25e53d9 commit a2548c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/Admin/Servers/ServerTransferController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ public function transfer(Request $request, Server $server) {
114114
$transfer->new_node = $node_id;
115115
$transfer->old_allocation = $server->allocation_id;
116116
$transfer->new_allocation = $allocation_id;
117-
$transfer->old_additional_allocations = json_encode($server->allocations->where('id', '!=', $server->allocation_id)->pluck('id'));
118-
$transfer->new_additional_allocations = json_encode($additional_allocations);
117+
$transfer->old_additional_allocations = $server->allocations->where('id', '!=', $server->allocation_id)->pluck('id');
118+
$transfer->new_additional_allocations = $additional_allocations;
119119

120120
$transfer->save();
121121

0 commit comments

Comments
 (0)