Skip to content
Snippets Groups Projects
Commit 6c34e5ef authored by Rob Phillips's avatar Rob Phillips Committed by Mark Quirvien Cristobal
Browse files

Issue #3406547 by robphillips: Fixes dialogOptions when using GET Ajax requests.

parent 6fdf20cb
No related branches found
No related tags found
1 merge request!10Issue #3406547 by robphillips: Fixes dialogOptions when using GET Ajax requests.
...@@ -37,7 +37,12 @@ class Bootstrap4ModalRenderer extends DialogRenderer { ...@@ -37,7 +37,12 @@ class Bootstrap4ModalRenderer extends DialogRenderer {
// Determine the title: use the title provided by the main content if any, // Determine the title: use the title provided by the main content if any,
// otherwise get it from the routing information. // otherwise get it from the routing information.
if ($request->getMethod() === 'GET') {
$options = $request->query->all()['dialogOptions'] ?? [];
}
else {
$options = $request->request->all()['dialogOptions'] ?? []; $options = $request->request->all()['dialogOptions'] ?? [];
}
$response->addCommand(new OpenBootstrap4ModalDialogCommand($title, $content, $options)); $response->addCommand(new OpenBootstrap4ModalDialogCommand($title, $content, $options));
return $response; return $response;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment