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
62df5f1c
Commit
62df5f1c
authored
Oct 29, 2013
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2117265
by olli: Fixed Row format ajax broken when Drupal is installed in a subdirectory.
parent
5ab1bfcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/ViewsFormBase.php
.../views_ui/lib/Drupal/views_ui/Form/Ajax/ViewsFormBase.php
+1
-1
core/modules/views_ui/lib/Drupal/views_ui/Tests/RowUITest.php
.../modules/views_ui/lib/Drupal/views_ui/Tests/RowUITest.php
+6
-0
No files found.
core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/ViewsFormBase.php
View file @
62df5f1c
...
...
@@ -149,7 +149,7 @@ public function getForm(ViewStorageInterface $view, $display_id, $js) {
if
(
!
$form_state
[
'ajax'
])
{
return
new
RedirectResponse
(
url
(
$form_path
,
array
(
'absolute'
=>
TRUE
)));
}
$form_state
[
'path'
]
=
url
(
$form_path
)
;
$form_state
[
'path'
]
=
$form_path
;
$response
=
views_ajax_form_wrapper
(
$form_state
[
'form_id'
],
$form_state
);
}
elseif
(
!
$form_state
[
'ajax'
])
{
...
...
core/modules/views_ui/lib/Drupal/views_ui/Tests/RowUITest.php
View file @
62df5f1c
...
...
@@ -63,6 +63,12 @@ public function testRowUI() {
$row
=
$view
->
display_handler
->
getOption
(
'row'
);
$this
->
assertEqual
(
$row
[
'type'
],
'test_row'
,
'Make sure that the test_row got saved as used row plugin.'
);
$this
->
assertEqual
(
$row
[
'options'
][
'test_option'
],
$random_name
,
'Make sure that the custom settings field got saved as expected.'
);
// Change the row plugin to fields using ajax.
$this
->
drupalPostAjaxForm
(
$row_plugin_url
,
array
(
'row'
=>
'fields'
),
array
(
'op'
=>
'Apply'
),
str_replace
(
'/nojs/'
,
'/ajax/'
,
$row_plugin_url
));
$this
->
drupalPostAjaxForm
(
NULL
,
array
(),
array
(
'op'
=>
'Apply'
));
$this
->
assertResponse
(
200
);
$this
->
assertFieldByName
(
'row'
,
'fields'
,
'Make sure that the fields got saved as used row plugin.'
);
}
}
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