Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/Http/Controllers/ServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
'message' => 'Added Service: <i>' . $service->service_id . ': ' . e($type) . '</i>',
]);
}

return response()->json([
'status' => 1,
'message' => 'ERROR: Failed to add Service: <i>' . e($type) . '</i>',
Expand Down Expand Up @@ -140,10 +141,10 @@
$service->service_param = $request->input('service_param', $request->input('param'));
}
if ($request->has('service_ignore') || $request->has('ignore')) {
$service->service_ignore = (int) $request->input('service_ignore', $request->input('ignore'));

Check failure on line 144 in app/Http/Controllers/ServiceController.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis

Property App\Models\Service::$service_ignore (bool) does not accept int.
}
if ($request->has('service_disabled') || $request->has('disabled')) {
$service->service_disabled = (int) $request->input('service_disabled', $request->input('disabled'));

Check failure on line 147 in app/Http/Controllers/ServiceController.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis

Property App\Models\Service::$service_disabled (bool) does not accept int.
}
if ($request->has('service_template_id') || $request->has('template_id')) {
$service->service_template_id = $request->input('service_template_id', $request->input('template_id')) ?: null;
Expand Down
Loading