Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php please assets:meta cleanup data in yaml meta files #4595

Closed
lotarbo opened this issue Oct 27, 2021 · 0 comments · Fixed by #6854
Closed

php please assets:meta cleanup data in yaml meta files #4595

lotarbo opened this issue Oct 27, 2021 · 0 comments · Fixed by #6854
Labels

Comments

@lotarbo
Copy link

lotarbo commented Oct 27, 2021

Bug description

I add alt text to asset blueprint, then add text to asset. In yaml file i see

data:
  alt: 'Test 2'

i run php please assets:meta
in yaml

data: {  }

How to reproduce

add data to yaml file
run php please assets:meta

Logs

No response

Versions

Statamic 3.2.18 Pro
Laravel 8.68.0
PHP 8.0.8

Installation

Fresh statamic/statamic site via CLI

Additional details

When i add $asset->hydrate(); in vendor/statamic/cms/src/Console/Commands/AssetsMeta.php
like this
image
all ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants