-
Notifications
You must be signed in to change notification settings - Fork 642
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
Accounts for non-array fieldId in MatrixBlockQuery #12635
Conversation
|
Can you post the full stack trace? |
I can do you one better. I can recreate this on a vanilla install of Craft 4.3.8.2 by creating a single section with a single matrix block with a single plain text field with a handle of The bug is that when you click to create a new entry in the CP it calls I'm not sure of the best fix for this. You could blacklist the Edit: thinking about this a little bit more: I guess the |
Thanks! I fixed this within Craft 3.7.66 and 4.3.9 are both out with the fix. (Technically the root bug existed in Craft 3, even though it wasn’t causing any problems there.) |
🎉 this is fantastic thanks! Will get it checked out and tested later today and confirm everything is good. |
This is working great in our dev environment! Thank you. |
Great to hear! |
During a Craft 3.7 -> Craft 4.3 upgrade I ended up with a
$this->fieldId=69
which is not aforeach
-able array. The fix was to add the fieldId as a tag directly, but I'm not sure if that affects other parts of the code?The big question: is this a result of a bad upgrade on my part or an actual bug? The type hints seem to imply that an
int
is a valid value for->fieldId
but I'm not sure if they're just out of date?