Closed florianschrottenloher-iu closed 5 months ago
There is a possibility it's breaking more than this
I didn't dig into it but titles are saved like this
After digging, it's completely unrelated just missed a $field =
in $field = parent::prepareFieldsBeforeSave($object, $fields);
Description
The Axios update to v0.28.0 had some breaking changes in parameter serialization. Objects and Arrays are now provided in a bracket style instead of an object style:
New: &filter[status]=published Old: &filter={"status":"published"}
This change leads to json_decode errors in src/Http/Controllers/Admin/ModuleController.php due to Twill expecting a json_decodeable string attached to the "filter" request parameter.
Object { message: "json_decode(): Argument #1 ($json) must be of type string, array given", exception: "TypeError", file: "./vendor/area17/twill/src/Http/Controllers/Admin/ModuleController.php", line: 2135}
Steps to reproduce
Expected result
Actual result
Versions
Twill 3.2.0