-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
Cached metadata has empty data property #2831
Comments
thanks, i just bumped into this |
Just run into this as well. Worked fine on Statamic 3.0.25. |
I can confirm this is a bug, likely related to the changes made in #2828. |
Should be fixed in 3.0.27, let us know if you have any issues going forward! |
Broken again in 3.0.46? :-/ @jesseleite .meta/B0002040_2.jpg.yaml data:
text: "Image description"
alt: "Alt text"
size: 15246105 Antlers {{ images }}
<img src="{{ url }}" alt="{{ alt }}" />
{{ /images }} Output <img src="/img/B0002040_2.jpg" alt=""> |
Hey! If it's broken again, would you mind opening a fresh issue. Thanks! |
Bug Description
When asset metadata is fetched from the cache the data key is overwritten with an empty collection in:
.. as $this->data isn't hydrated.
How to Reproduce
Extra Detail
Pull request
Environment
Statamic 3.0.26 Pro
Laravel 7.29.3
PHP 7.4.9
The text was updated successfully, but these errors were encountered: