- Issue created by @lissy
- Status changed to Needs review
over 1 year ago 12:55am 6 April 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Please try the attached patch and report back.
Thanks!
- 🇩🇪Germany lissy
HI @larowlan
Thanks for the patch, but the code
if ($args = $this->currentRequest->query->get('view_args')) { $executable->setArguments($args); }
is already in the version 8.x-2.11.
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
I don't think so, check the line numbers, the patch is a diff against 8.x-2.11
- Status changed to RTBC
over 1 year ago 10:27am 3 August 2023 - 🇸🇰Slovakia kaszarobert
I can confirm the patch fixes the issue. You have to use a URL like that:
/print/view/pdf/faktura_view/page_1/debug?view_args[0]=54
If you try otherwise with the patch, you get
UnexpectedValueException: Unexpected value for parameter "view_args": expecting "array", got "string". in Drupal\Core\Http\InputBag->all() (line 31 of core/lib/Drupal/Core/Http/InputBag.php).
- 🇦🇷Argentina gerzenstl Resistencia
I can confirm patch from #3 🐛 Debug entity print view with view_args RTBC works.
I tested in:
* Drupal 10.2.1
* Entity print 8.x-2.13