mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-08 08:35:42 +00:00
Fixed custom error message for status labels
This commit is contained in:
@ -56,7 +56,7 @@ class StatuslabelsController extends Controller
|
||||
$request->except('deployable', 'pending','archived');
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user