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.
Comment | File | Size | Author |
---|---|---|---|
#7 | admin-user-switch-1118148-7.patch | 610 bytes | jacob.embree |
Comments
Comment #1
dawehnerHere is the patch.
Comment #2
pebosi CreditAttribution: pebosi commentedPatch worked for me. Thanks.
Comment #3
tancConfirmed patch in #1 works nicely.
Comment #4
tancJust another note to say I've just re-patched an admin module with dereine's patch in #1 and it's working fine. I've marked this as reviewed but maybe I'm overstepping the mark so forgive me if this needs more testing.
Comment #5
jfrederick CreditAttribution: jfrederick commentedThis patch still works great as of 10/11/12 with devel 6.x-1.27.
Comment #6
Cisse CreditAttribution: Cisse commentedI had this issue with Drupal 7.31 and Admin 7.x-2.0-beta3+8-dev. You can also apply this change and it will work perfectly:
Comment #7
jacob.embree CreditAttribution: jacob.embree commentedWhat are the steps to reproduce this? I have seen the user switcher fail silently before, but it may have been with an older version of Devel or Admin. I can't reproduce now on Drupal 6 or 7.
I am not convinced that this patch is necessary because I think since there is only one submit button it shouldn't matter whether the submit callback is added to the form or the submit button. However, a reroll is attached because the other one didn't apply.
Comment #8
jacob.embree CreditAttribution: jacob.embree commentedComment #9
mikelutzI have never seen the switch user form work in the admin bar, and while I made the change manually versus trying the patch, I can confirm the change solves the problem.
I could always switch to the users that were listed in the block, since those were direct links to devel/switch/[username], but the form where you type in a user has always failed for me until I apply this change.
Comment #10
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commentedA change in Devel makes this patch no longer work.
#2448063: Add #actions container to submit buttons.
I opened #3020764: Devel blocks do not submit to fix more than just the user switch block.