Skip to content

Safely get asset meta values#3280

Merged
jasonvarga merged 6 commits intostatamic:masterfrom
arthurperton:pr/issue-3257-empty-meta-file
Mar 9, 2021
Merged

Safely get asset meta values#3280
jasonvarga merged 6 commits intostatamic:masterfrom
arthurperton:pr/issue-3257-empty-meta-file

Conversation

@arthurperton
Copy link
Copy Markdown
Contributor

@arthurperton arthurperton commented Feb 19, 2021

Fixes #3257.

It checks if a requested meta value exists, and if not it re-generates the meta file. Normally this won't happen, but if meta files get damaged or a new meta value is introduced, those cases will be handled gracefully.

When this PR is accepted, I would like to write a solution for #3277 on top of it.

@arthurperton arthurperton marked this pull request as ready for review February 19, 2021 09:46
@jasonvarga jasonvarga changed the base branch from 3.0 to master March 9, 2021 01:08
@jasonvarga jasonvarga merged commit 0588e41 into statamic:master Mar 9, 2021
@arthurperton arthurperton deleted the pr/issue-3257-empty-meta-file branch December 19, 2024 07:52
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.

If asset's meta file is empty, CP & site throw errors

2 participants