In the "form" function found in \core\modules\views_ui\lib\Drupal\views_ui\ViewCloneFormController.php the "#default_value" array key is unconditionally assigned twice.

offending code:

$form['label'] = array(
      '#type' => 'textfield',
      '#title' => $this->t('View name'),
      '#required' => TRUE,
      '#size' => 32,
      '#default_value' => '',
      '#maxlength' => 255,
      '#default_value' => $this->t('Clone of @label', array('@label' => $this->entity->label())),
    );
Files: 
CommentFileSizeAuthor
#2 2091135-2.patch669 bytessidharthap
PASSED: [[SimpleTest]]: [MySQL] 59,244 pass(es).
[ View ]

Comments

Title:Duplicate array key in ViewCloneFormControllerDuplicate array key default_value in ViewCloneFormController

Status:Active» Needs review
StatusFileSize
new669 bytes
PASSED: [[SimpleTest]]: [MySQL] 59,244 pass(es).
[ View ]

patch to remove blank value as default value.

Status:Needs review» Reviewed & tested by the community

Looks good and tests pass.

Status:Reviewed & tested by the community» Fixed

Committed 3926592 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.