Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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!