- Merge request !33174234-comment-14137165 Drupal 9 compatibility, deprecated code → (Open) created by zahord
- First commit to issue fork.
- 🇦🇷Argentina nexonOSX
Found an issue with request which trow the following error:
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "data" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of /var/www/html/vendor/symfony/http-kernel/HttpKernel.php).
So for this I refactored the way how is obtained the keywords parameter on the request, so it first get all paramenters and then validate if the keyword exist.
so from:
$keywords = $fm->request->request->get('data')['keywords'];
To:
$receivedData = $fm->request->request->all(); $data = $receivedData['data']; $keywords = ''; if (is_array($data) && isset($data['keywords'])) { $keywords = $data['keywords']; }
This on the current fork.