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
Fix Client error when passing asset parameter to forms #814
Conversation
aa3cf82
to
c52bd85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. This error does not happen if you use a query param like &asset=25
as when using the "Add observation log" action button from a single asset page.
But this error does happen when appending brackets to potentially indicate multiple asset IDs &asset[]=25
. I hadn't heard of this deprecation, just wonder where else this may apply...
Oh good point @paul121. I wonder if my fix breaks that case? |
Dang. Yes it does. Now I get "Client error" in that context. |
c52bd85
to
b5a24a2
Compare
OK, I reworked the logic so that it works with both single value It's a bit annoying because |
This also needs to be fixed here: https://github.com/farmOS/farmOS/blob/3.x/modules/core/quick/src/Traits/QuickPrepopulateTrait.php#L77 |
6670d07
to
9447b42
Compare
9447b42
to
5777f15
Compare
Merged. |
Fixes #813