Skip to content

Commit 7dd00d6

Browse files
committed
Fix startup executable display bug
1 parent bcd4b35 commit 7dd00d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/Server/ServerController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ public function getSettings(Request $request, $uuid)
200200
->get();
201201

202202
$service = Models\Service::select(
203-
DB::raw('COALESCE(service_options.executable, services.executable) as executable'),
204-
DB::raw('COALESCE(service_options.startup, services.startup) as startup')
203+
DB::raw('IFNULL(service_options.executable, services.executable) as executable')
205204
)->leftJoin('service_options', 'service_options.parent_service', '=', 'services.id')
205+
->where('service_options.id', $server->option)
206206
->where('services.id', $server->service)
207207
->first();
208208

0 commit comments

Comments
 (0)