Commit ee1c96b4 authored by damiankloip's avatar damiankloip Committed by tim.plunkett

Issue #1789990 by damiankloip | dawehner: Fixed Local task to settings form does not appear.

parent 80e4c781
......@@ -33,6 +33,10 @@ public static function getInfo() {
function testEditUI() {
$this->drupalLogin($this->adminUser);
// Test the settings tab exists.
$this->drupalGet('admin/structure/views');
$this->assertLinkByHref('admin/structure/views/settings');
// Configure to always show the master display.
$edit = array(
'ui_show_master_display' => TRUE,
......
......@@ -35,6 +35,13 @@ public function hookMenu() {
$items[$path]['access callback'] = 'user_access';
$items[$path]['access arguments'] = array('administer views');
// Add a default local task, so we have tabs.
$items["$path/list"] = array(
'title' => 'List',
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
// Set up the base for AJAX callbacks.
$ajax_base = array(
'page callback' => 'views_ui_listing_ajax_callback',
......
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