This commit is contained in:
Dane Everitt 2016-08-16 19:06:03 -04:00
parent 7c80588fd3
commit 445b2f20eb

View file

@ -204,7 +204,8 @@ class ServerController extends Controller
'service_variables.*',
DB::raw('COALESCE(server_variables.variable_value, service_variables.default_value) as a_serverValue')
)->leftJoin('server_variables', 'server_variables.variable_id', '=', 'service_variables.id')
->where('option_id', $server->option)
->where('service_variables.option_id', $server->option)
->where('server_variables.server_id', $server->id)
->get();
$service = Models\Service::select(