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.
Problem/Motivation
In ModulesListForm.php line 266 string value is assigned to ['attributes']['class'] instead of an array which causes problems.
Proposed resolution
Assign the value to class attribute in the form of an array.
Comment | File | Size | Author |
---|---|---|---|
#3 | class_array-3307972-3.patch | 827 bytes | rik.scholten |
Issue fork drupal-3307972
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rik.scholtenComment #3
rik.scholtenIgnore the previous patch please, it turned out empty on accident.
Comment #4
PasqualleComment #6
AlirezaK CreditAttribution: AlirezaK commentedI created the MR 2790 with the same solution of -3 patch which wraps the class value in [].
Comment #7
alexpottMarkup arrays are allowed to change in minor releases. We try to keep them consistent for bugfix releases and I'm not sure that we should be changing this in a bugfix release.
Committed and pushed f913fc46a7 to 10.1.x and 7eba074322 to 10.0.x and f6aa163c8a to 9.5.x. Thanks!