Format error

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-05 03:23:48 +01:00
parent a0914ccb28
commit 2a796fdc09

View file

@ -163,7 +163,7 @@ class CategoriesController extends Controller
// Don't allow the user to change the category_type once it's been created
if (($request->filled('category_type')) && ($category->category_type != $request->input('category_type'))) {
return response()->json(
Helper::formatStandardApiResponse('error', null, trans('admin/categories/message.update.cannot_change_category_type'))
Helper::formatStandardApiResponse('error', null, ['category_type' => trans('admin/categories/message.update.cannot_change_category_type')], 422)
);
}
$category->fill($request->all());