Skip to content

Conversation

@jamiesage123
Copy link

This pull request fixes #2392.

When attempting to edit a shipping or billing address on an order that doesn't have one yet, the system throws an error trying to call methods on a null relationship, preventing the address from being added.

This pull request changes the DisplaysOrderAddresses.php to handle creating a new address when one doesn't exist, on top of the existing logic allowing editing, while keeping the activity log for both scenarios.

@alecritson
Copy link
Collaborator

Thanks @jamiesage123 but it seems this is a duplicate of #2375 , if you think changes you have made here should be included on that PR feel free to comment.

@alecritson alecritson closed this Jan 5, 2026
@github-project-automation github-project-automation bot moved this from Todo to Done in Roadmap Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Error when adding shipping/billing address to order without existing address

2 participants