Skip to content

Commit 445b2f2

Browse files
committed
1 parent 7c80588 commit 445b2f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/Server/ServerController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ public function getSettings(Request $request, $uuid)
204204
'service_variables.*',
205205
DB::raw('COALESCE(server_variables.variable_value, service_variables.default_value) as a_serverValue')
206206
)->leftJoin('server_variables', 'server_variables.variable_id', '=', 'service_variables.id')
207-
->where('option_id', $server->option)
207+
->where('service_variables.option_id', $server->option)
208+
->where('server_variables.server_id', $server->id)
208209
->get();
209210

210211
$service = Models\Service::select(

0 commit comments

Comments
 (0)