From 6e85aa027a441e32ee208e6f7d9ba2a7086345af Mon Sep 17 00:00:00 2001 From: Nathan Dobbin Date: Wed, 25 Oct 2023 15:14:10 +1300 Subject: [PATCH] Fix createAsset mutation failure where tag id expects integer --- src/GraphQL/Traits/ElementTagTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphQL/Traits/ElementTagTrait.php b/src/GraphQL/Traits/ElementTagTrait.php index bb2688f0..2995fa59 100644 --- a/src/GraphQL/Traits/ElementTagTrait.php +++ b/src/GraphQL/Traits/ElementTagTrait.php @@ -70,7 +70,7 @@ protected function getTagsFromInput(array $input) $tags = []; foreach ($input as $tag_input) { if (isset($tag_input['id']) && $tag_input['id']) { - $tag = Tag::getById($tag_input['id']); + $tag = Tag::getById((int)$tag_input['id']); } elseif (isset($tag_input['path']) && $tag_input['path']) { $tag = Tag::getByPath($tag_input['path']); } else {