Commit 2084cd35 authored by webchick's avatar webchick

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

parent 9442bea3
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment