Commit 62df5f1c authored by catch's avatar catch

Issue #2117265 by olli: Fixed Row format ajax broken when Drupal is installed in a subdirectory.

parent 5ab1bfcb
......@@ -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']) {
......@@ -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->assertFieldByName('row', 'fields', 'Make sure that the fields got saved as used row plugin.');
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