Skip to content

Fix asset metadata structure when updating stories - #208

Merged
apfelbox merged 3 commits into
5.xfrom
storyblok-asset-structure
Jun 9, 2026
Merged

Fix asset metadata structure when updating stories#208
apfelbox merged 3 commits into
5.xfrom
storyblok-asset-structure

Conversation

@carlgu

@carlgu carlgu commented May 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/Api/ManagementApi.php Outdated
// If "meta_data" is an empty array set it to empty stdClass
if (isset($value['meta_data']) && empty($value['meta_data'])) {
$value['meta_data'] = new \stdClass();
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could early-continue here, but it is fine as-is as well

Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md
Comment thread UPGRADE.md Outdated
@apfelbox
apfelbox merged commit 943b8d0 into 5.x Jun 9, 2026
1 check passed
@apfelbox
apfelbox deleted the storyblok-asset-structure branch June 9, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants