I don't know how many still uses 6.x-1.0 version but did notice that form redirect returns wrong path URL when editing or deleting existing address.
Error is caused due to $address_user being NULL when editing or deleting existing addresses.
Attached is patch for correction against 6.x-1.dev branch.
Also happy to be co-maintainer of uc_addresses if access granted.
| Comment | File | Size | Author |
|---|---|---|---|
| uc_addresses_form_redirect.patch | 1.4 KB | mitrpaka |
Comments
Comment #2
mitrpaka commentedComment #3
mitrpaka commenteduc_addresses_form_redirect.patch queued for re-testing.
Comment #4
megachrizI haven't looked at the 6.x-1.x code for quite a while, but the data about the user should be available ($address_user shouldn't be NULL).
In uc_addresses_get_address_form(), ± line 922:
In uc_addresses_get_address_form_submit(), ± line 1039:
Do you use a module that modifies account subpaths? Specifically, is the path user/[uid]/addresses aliased? I know Ubercart Addresses is incompatible with the 'me aliases' module (see #1252424: Incompatible with 'me' aliases).
Comment #5
megachrizThanks for your offer for being co-maintainer! But first, you maybe want to supply some more patches in the issue queue before I grant you access (so I know you know your way in the Ubercart Addresses code).
Comment #6
mitrpaka commentedOk - Was not aware of 'me' aliases issues.
uc_addresses worked ok after 'me' module was disabled. Sorry about confusion.
Patch can be applied if uc_addresses used with 'me' module ;-)