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
That method has this line:
$form['submit']['#weight'] = 10;
If there are any exposed sorts. But $form['submit'] doesn't exist, as other lines further up show, that is now inside a separate 'actions' key.
Proposed resolution
Remoe that that, actions means it is already ensured to have a weight of 99 or so and since this doesn't do anything, it's also not necessary.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#11 | views-exposed-submit-remove-weight-2974640-11.patch | 631 bytes | mrinalini9 |
Comments
Comment #2
ilya.no CreditAttribution: ilya.no as a volunteer and at Skilld for Skilld commentedCheck, please, attached patch.
Comment #7
kkalashnikov CreditAttribution: kkalashnikov at Srijan | A Material+ Company commentedPatch #2 is working fine for me moved to RTBC
Comment #8
kkalashnikov CreditAttribution: kkalashnikov at Srijan | A Material+ Company commentedComment #9
alexpottCommitted 1c259a5 and pushed to 9.1.x. Thanks!
Going to ping to other committers for a backport to 9.0.x and 8.9.x as these are in RC.
Comment #11
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commentedAdded patch for 8.9.x, please review.
Comment #12
andypostrevert status
Comment #13
alexpott@mrinalini9 the patch in #2 applied to 8.9.x already.
Comment #14
alexpottDiscussed with @catch and cherry-picked this back to 8.9.x