Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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())),
);
Comment | File | Size | Author |
---|---|---|---|
#2 | 2091135-2.patch | 669 bytes | sidharthap |
Comments
Comment #1
YesCT CreditAttribution: YesCT commentedComment #2
sidharthappatch to remove blank value as default value.
Comment #3
mcrittenden CreditAttribution: mcrittenden commentedLooks good and tests pass.
Comment #4
alexpottCommitted 3926592 and pushed to 8.x. Thanks!