mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Merge pull request #15566 from Godmartinz/status-label-error-message
Fixed Status Labels Error Message
This commit is contained in:
commit
15745d9737
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue