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.
There is a bug when editing the account. If you are using modules that modify URL (e.g. me aliases).
In file logintoboggan.module not quite correctly loaded user account:
$account = user_load(array('uid' => arg(1)));
If you enable the module "me aliases", then the arg(1) == 'me' and have error.
Applying patch to fix.
Comment | File | Size | Author |
---|---|---|---|
#2 | logintoboggan-803422.patch | 890 bytes | 1sp |
logintoboggan-6.x-1.7-uid.patch | 631 bytes | azovsky |
Comments
Comment #1
hunmonk CreditAttribution: hunmonk commentedComment #2
1sp CreditAttribution: 1sp commentedThe $form['_account']['#value'] does contains the desired user object. so no need of explicit user_load.
Attaching an alternate patch.
Comment #3
hunmonk CreditAttribution: hunmonk commentedis there a $form['#account'] in the form array there? if so, i believe that's the one we'd want to use.
Comment #4
1sp CreditAttribution: 1sp commentedI couldn't find $form['#account'] in the form array, there is only $form['_account'] as stated earlier in http://drupal.org/node/803422#comment-2993182
Comment #5
hunmonk CreditAttribution: hunmonk commentedno need to cast _account to an object -- it's always created as one by core.
patch tests out well. committed to 5.x-1.x-dev and 6.x-1.x-dev -- 7.x does not have this issue.