diff --git a/extensions/tags/src/Api/Controller/OrderTagsController.php b/extensions/tags/src/Api/Controller/OrderTagsController.php index 5c5a12a30..d324dd8de 100644 --- a/extensions/tags/src/Api/Controller/OrderTagsController.php +++ b/extensions/tags/src/Api/Controller/OrderTagsController.php @@ -30,6 +30,10 @@ class OrderTagsController implements ControllerInterface $order = array_get($request->getParsedBody(), 'order'); + if ($order === null) { + return new EmptyResponse(422); + } + Tag::query()->update([ 'position' => null, 'parent_id' => null