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.
When creating a node, the taxonomy terms are *not* in their own fieldset like they should be. The rest of form_alter() hooks in core that append form elements to the node edit form through their inputs into their own respective fieldset. This patch fixes the taxonomy module which is the only in core that doesn't do this.
Comment | File | Size | Author |
---|---|---|---|
#11 | _40813_weightsagain_1.patch | 3.25 KB | Morbus Iff |
#7 | _40813_weightsagain_0.patch | 3.26 KB | Morbus Iff |
#4 | _40813_weightsagain.patch | 1.01 KB | Morbus Iff |
taxonomy.module_12.patch | 709 bytes | m3avrck | |
Comments
Comment #1
m3avrck CreditAttribution: m3avrck commentedJust to clarify, this is the problematic screen shot:
http://www.washsq.com/tmp/t5.gif
Notice how that category is out of flow with the rest of the options for the create story. Everything else is in a fieldset.
Comment #2
m3avrck CreditAttribution: m3avrck commentedLet's hold this back for a sec might not be the best solution.
Comment #3
m3avrck CreditAttribution: m3avrck commentedNo longer needed.
Comment #4
Morbus Iffm3avrck: I'm reopening this, and setting it to be RTBC - we agree in regards to *what is in core right now*:
Comment #5
m3avrck CreditAttribution: m3avrck commentedOk this new patch definetly works a lot better and works as expected. Code is clean and ready to go!
Comment #6
chx CreditAttribution: chx commenteduse array_merge please. what was OK for a few attributes is a nuisance for so many.
Comment #7
Morbus IffAttached revised patch. Uses array_merge as per chx, and fixes a missing/broken #size in "multiple" selects.
Comment #8
m3avrck CreditAttribution: m3avrck commentedPatch looks good and works!
Comment #9
chx CreditAttribution: chx commentedeither cast that size to integer or check_plain it but this is insecure.
Comment #10
chx CreditAttribution: chx commentedOn second thought, it's not. No other place has #size check_plained -- who is such an idiot to put a user input data into size??
Comment #11
Morbus IffUpdated patch. Fixes bad HTML for the size attribute.
Comment #12
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #13
(not verified) CreditAttribution: commented