Fixed custom error message for status labels

This commit is contained in:
snipe 2017-08-24 22:40:07 -07:00
parent c1dcc22217
commit 659d953f3f

View file

@ -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;