diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php index 7a37926c4693..0e8546c37fb0 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php @@ -217,7 +217,7 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface { '#title' => t('Create a page'), '#type' => 'checkbox', '#attributes' => array('class' => array('strong')), - '#default_value' => TRUE, + '#default_value' => FALSE, '#id' => 'edit-page-create', ); diff --git a/core/modules/views/lib/Drupal/views/Tests/Comment/WizardTest.php b/core/modules/views/lib/Drupal/views/Tests/Comment/WizardTest.php index 05f3862dd811..834bd5bb8938 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Comment/WizardTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Comment/WizardTest.php @@ -40,6 +40,7 @@ class WizardTest extends WizardTestBase { $view['human_name'] = $this->randomName(16); $view['name'] = strtolower($this->randomName(16)); $view['show[wizard_key]'] = 'comment'; + $view['page[create]'] = TRUE; $view['page[path]'] = $this->randomName(16); // Just triggering the saving should automatically choose a proper row diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewAddFormController.php b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewAddFormController.php index 40c9257fd6b2..d8db8ef4796a 100644 --- a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewAddFormController.php +++ b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewAddFormController.php @@ -30,7 +30,12 @@ class ViewAddFormController extends ViewFormControllerBase { $form['#attached']['js'][] = drupal_get_path('module', 'views_ui') . '/js/views-admin.js'; $form['#attributes']['class'] = array('views-admin'); - $form['human_name'] = array( + $form['name'] = array( + '#type' => 'fieldset', + '#attributes' => array('class' => array('fieldset-no-legend')), + ); + + $form['name']['human_name'] = array( '#type' => 'textfield', '#title' => t('View name'), '#required' => TRUE, @@ -38,21 +43,21 @@ class ViewAddFormController extends ViewFormControllerBase { '#default_value' => '', '#maxlength' => 255, ); - $form['name'] = array( + $form['name']['name'] = array( '#type' => 'machine_name', '#maxlength' => 128, '#machine_name' => array( 'exists' => 'views_get_view', - 'source' => array('human_name'), + 'source' => array('name', 'human_name'), ), '#description' => t('A unique machine-readable name for this View. It must only contain lowercase letters, numbers, and underscores.'), ); - $form['description_enable'] = array( + $form['name']['description_enable'] = array( '#type' => 'checkbox', '#title' => t('Description'), ); - $form['description'] = array( + $form['name']['description'] = array( '#type' => 'textfield', '#title' => t('Provide description'), '#title_display' => 'invisible',