diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/CachedDataUITest.php b/core/modules/views/lib/Drupal/views/Tests/UI/CachedDataUITest.php index cd08f42f20c92b87fac8e1b3d939529eaed1b263..438111becf021ffd4cb17b9b8b190d9ae4d3c5ea 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/CachedDataUITest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/CachedDataUITest.php @@ -41,7 +41,7 @@ public function testCacheData() { $this->drupalGet('admin/structure/views/view/test_view/edit'); // Make sure we have 'changes' to the view. $this->drupalPost('admin/structure/views/nojs/display/test_view/default/title', array(), t('Apply')); - $this->assertText('* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard your changes.', 'The view has been changed.'); + $this->assertText('All changes are stored temporarily.', 'The view has been changed.'); $view_cache = $temp_store->get('test_view'); // The view should be enabled. diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewEditFormController.php b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewEditFormController.php index 3ce86e8b67b9b1afb489bc39d85bb7bc5497f5e7..4b1df77e3c33ff3235f47f105c687fd0d491c2a5 100644 --- a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewEditFormController.php +++ b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewEditFormController.php @@ -96,17 +96,10 @@ public function form(array $form, array &$form_state, EntityInterface $view) { ); } else { - if (isset($view->vid) && $view->vid == 'new') { - $message = t('* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard the view.'); - } - else { - $message = t('* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard your changes.'); - } - $form['changed'] = array( '#type' => 'container', '#attributes' => array('class' => array('view-changed', 'messages', 'warning')), - '#children' => $message, + '#children' => t('All changes are stored temporarily. Click "Save" to make your changes permanent. Click "Cancel" to discard your changes.'), '#weight' => -10, ); if (empty($view->changed)) {