From 1f7f883d2501c30d6d470be05f238a30b927df73 Mon Sep 17 00:00:00 2001 From: Nathan Dobbin Date: Fri, 27 Oct 2023 21:14:04 +1300 Subject: [PATCH] Fix createAsset mutation failure where tag id expects integer (#808) --- 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 {