Skip to content
Snippets Groups Projects
Commit 2084cd35 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2228477 by xandeadx: Better way to set in DialogController::dialog().

parent 9442bea3
No related branches found
No related tags found
No related merge requests found
......@@ -96,9 +96,7 @@ public function dialog(Request $request, $_content, $modal = FALSE) {
$title = $this->titleResolver->getTitle($request, $request->attributes->get(RouteObjectInterface::ROUTE_OBJECT));
$response = new AjaxResponse();
// Fetch any modal options passed in from data-dialog-options.
if (!($options = $request->request->get('dialogOptions'))) {
$options = array();
}
$options = $request->request->get('dialogOptions', array());
// Set modal flag and re-use the modal ID.
if ($modal) {
$options['modal'] = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment