Merge pull request #15566 from Godmartinz/status-label-error-message

Fixed Status Labels Error Message
This commit is contained in:
snipe 2024-10-22 16:39:44 +01:00 committed by GitHub
commit 15745d9737
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,8 @@ class StatuslabelsController extends Controller
$request->except('deployable', 'pending', 'archived');
if (! $request->filled('type')) {
return response()->json(Helper::formatStandardApiResponse('error', null, ['type' => ['Status label type is required.']]), 500);
return response()->json(Helper::formatStandardApiResponse('error', null, ['type' => ['Status label type is required.']]));
}
$statuslabel = new Statuslabel;