-
Notifications
You must be signed in to change notification settings - Fork 31
Asset data is not being hydrated correctly causing alt text to be filename instead #143
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
Comments
Weirdly that one line fix in the #144 PR does it for me, I get alt text just fine. I do not know how to write a test for it yet though. I see some examples for testing this sort of thing in statamic/cms repo https://github.com/statamic/cms/blob/3.3/tests/Assets/AssetTest.php#L422 but I couldn't get the tests to read the meta data from the .yaml file automatically. |
FYI for anyone checking this issue: v2.12.4 was published today with the fix, and one of the two folks in Discord server reported back and said that the fix in the PR fixed this issue. |
Thanks for confirming, forgot to comment here about the release |
As requested, separate issue for the alt text issue. This is continuation of this issue. #74
I have created a minimal bug report repository to reproduce the issue. https://github.com/ncla/responsive-image-alt-bug-report
The steps are simple, for blank Statamic install:
{{ responsive:image }}
You should see that the alt tag text is output from the filename itself.
The alt text is clearly saved, you can verify that through the asset .yaml file.
Rias, let me know if you can reproduce this issue, if not I will try to adjust the repo to get it working.
The text was updated successfully, but these errors were encountered: