You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On second thought, given the unexpected break that getSource() caused, I’ve decided to just remove it for the next release, and move that logic over to a new ElementHelper::sourceElement() method.
To get the change early, change your craftcms/cms requirement in composer.json to:
"require": {
"craftcms/cms": "dev-develop#efab6239d812506fec0878611a3685978baf3b53 as 3.2.10",
"...": "..."
}
Description
I think it is this change in 3.2.9 that breaks fields or matrix sub fields with the handle 'source'
An instance of craft\elements\Entry or craft\elements\MatrixBlock is returned instead of a field value.
However it is still possible to add fields with this handle, so 'source' should be added to the list of reserved names.
PS.
A wish: the change log description is for sure technically correct, but something like
would be very much appreciated.
Steps to reproduce
As this will not throw a runtime error, it's a bit tricky to discover.
Additional info
The text was updated successfully, but these errors were encountered: