mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fixed custom error message for status labels
This commit is contained in:
parent
c1dcc22217
commit
659d953f3f
|
@ -56,7 +56,7 @@ class StatuslabelsController extends Controller
|
||||||
$request->except('deployable', 'pending','archived');
|
$request->except('deployable', 'pending','archived');
|
||||||
|
|
||||||
if (!$request->has('type')) {
|
if (!$request->has('type')) {
|
||||||
return response()->json(Helper::formatStandardApiResponse('error', null, 'Status label type is required.'));
|
return response()->json(Helper::formatStandardApiResponse('error', null, ["type" => ["Status label type is required."]]));
|
||||||
}
|
}
|
||||||
|
|
||||||
$statuslabel = new Statuslabel;
|
$statuslabel = new Statuslabel;
|
||||||
|
|
Loading…
Reference in a new issue