Skip to content
Snippets Groups Projects
Commit ee1c96b4 authored by Damian Lee's avatar Damian Lee Committed by Tim Plunkett
Browse files

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

parent 80e4c781
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment