diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/DefaultViewsTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/DefaultViewsTest.php index a96172b..3ce171b 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/DefaultViewsTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/DefaultViewsTest.php @@ -84,7 +84,7 @@ function testDefaultViews() { $this->drupalGet('admin/structure/views'); $this->clickViewsOperationLink(t('Clone'), '/frontpage'); $edit = array( - 'name' => 'clone_of_frontpage', + 'id' => 'clone_of_frontpage', ); $this->assertTitle(t('Clone of @human_name | @site-name', array('@human_name' => 'Front page', '@site-name' => config('system.site')->get('name')))); $this->drupalPost(NULL, $edit, t('Clone')); @@ -94,7 +94,7 @@ function testDefaultViews() { $this->drupalGet('admin/structure/views'); $this->clickViewsOperationLink(t('Clone'), '/frontpage'); $random_name = strtolower($this->randomName()); - $this->drupalPost(NULL, array('name' => $random_name), t('Clone')); + $this->drupalPost(NULL, array('id' => $random_name), t('Clone')); $this->assertUrl("admin/structure/views/view/$random_name/edit", array(), 'The custom view name got saved.'); // Now disable the view, and make sure it stops appearing on the main view diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php index 70f18a9..dcf319a 100644 --- a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php +++ b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php @@ -36,7 +36,7 @@ public function form(array $form, array &$form_state, EntityInterface $entity) { '#maxlength' => 255, '#default_value' => t('Clone of @human_name', array('@human_name' => $entity->getHumanName())), ); - $form['name'] = array( + $form['id'] = array( '#type' => 'machine_name', '#maxlength' => 128, '#machine_name' => array(