-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Mark $imageId as mixed to prevent typing errors. Closes #57. #58
Conversation
Definitely appreciate the PR -- I think it probably should be changed to We also should do this for the I'll merge in the changes, then revise as per the above on my end. |
No worries. You're right, ?int should be okay because of the base model type casting - I just noticed this. I'm making another pass right now. There's another typing error when trying to save because the base model doesn't accept an instance anymore apparently? 🤔 |
Mmm nevermind. I just noticed another typing exception when selecting an image. I had to re-assign the volumes to the field (I expected that because of the latest changes they made to volumes), but now I also get the array / int exception just after selecting an image or video, in the ajax function.
|
Ah yeah okay. Let me do some end to end testing |
No worries. You can look at another thing I had to remove to be able to select an asset: "enabledForSite" seems to have been removed on AssetQuery. develop-v4...davidwebca:develop-v4 |
Fixed in 4.0.1 -> https://github.com/nystudio107/craft-recipe/releases/tag/4.0.1 |
@davidwebca haha yeah I independently found that one too in my testing ( |
A typing error was triggered because some image queries can be arrays and others are straight up image ids (strings), so changing the type to mixed solves this issue.