Administration users are unable to add new addresses to another users address book because the user id is taken from the global variable instead of the URL argument.

The attached patch makes use of code already in the address.module to work out which user id to use when redirecting after adding a new address, as well as injecting the user id in to the POST data before it is saved to the database.

CommentFileSizeAuthor
admin_add_address.patch467 bytesbudda

Comments

matt westgate’s picture

Status: Needs review » Fixed

Patch applied. Thanks!

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

ax’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)