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.
Steps to reproduce:
1. Install pathautho module.
2. Go to admin page /admin/config/search/path/settings
.
3. Scroll down the page.
We can see that "Punctuation" fieldset is open and it's very-very long! I couldn't make a screen because it's too long for this!
Let's take a look at the code:
$form['punctuation'] = array(
'#type' => 'fieldset',
'#title' => $this->t('Punctuation'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#tree' => TRUE,
);
Looks like it supposed to be hidden, but... collapsible fieldsets have been replaced with HTML5 details elements. See change records for details.
Comment | File | Size | Author |
---|---|---|---|
#4 | pathauto-close-punctuation.png | 87.87 KB | santhosh.p |
#2 | pathauto-close-punctuation-fieldset-2933345-2-D8.patch | 625 bytes | Matroskeen |
Comments
Comment #2
MatroskeenAnd here is a simple patch.
Comment #3
santhosh.p CreditAttribution: santhosh.p at DrupalPartners commentedComment #4
santhosh.p CreditAttribution: santhosh.p at DrupalPartners commentedpatch #2 has been tested and it's working fine. After applying the patch able to expand and hide the "Punctuation" fieldset.
Comment #5
santhosh.p CreditAttribution: santhosh.p at DrupalPartners commentedComment #7
BerdirThis also removed #tree, but that is still needed. Fixed before commit.