Skip to content

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

@lotarbo

Description

@lotarbo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions