Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
2084cd35
Commit
2084cd35
authored
Apr 03, 2014
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2228477
by xandeadx: Better way to set in DialogController::dialog().
parent
9442bea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
core/lib/Drupal/Core/Controller/DialogController.php
core/lib/Drupal/Core/Controller/DialogController.php
+1
-3
No files found.
core/lib/Drupal/Core/Controller/DialogController.php
View file @
2084cd35
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment