Fix startup executable display bug

This commit is contained in:
Dane Everitt 2016-09-16 18:44:12 -04:00
parent bcd4b35890
commit 7dd00d6d88

View File

@ -200,9 +200,9 @@ class ServerController extends Controller
->get();
$service = Models\Service::select(
DB::raw('COALESCE(service_options.executable, services.executable) as executable'),
DB::raw('COALESCE(service_options.startup, services.startup) as startup')
DB::raw('IFNULL(service_options.executable, services.executable) as executable')
)->leftJoin('service_options', 'service_options.parent_service', '=', 'services.id')
->where('service_options.id', $server->option)
->where('services.id', $server->service)
->first();