Skip to content

Fix postal code being overwritten in setDomainContacts - #32

Merged
abdyfranco merged 1 commit into
blesta:masterfrom
jpmorby:pr/opensrs-postal-code-fix
Sep 15, 2026
Merged

abdyfranco merged 1 commit into
blesta:masterfrom
jpmorby:pr/opensrs-postal-code-fix

Conversation

@jpmorby

@jpmorby jpmorby commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes a bug in setDomainContacts() where the postal code field was being overwritten with the wrong value before being sent to the OpenSRS API

Test plan

  • Update WHOIS contact details for a domain including a postal code and confirm the correct postal code is sent to/stored by OpenSRS

setDomainContacts() was discarding any real postal_code value supplied
in $vars, always falling back to $contact['zip'], and defaulting to
'00000' when neither was present. Preserve an explicit postal_code
when one is provided.

Partial port of a8d5787 (upstream master) — only the postal_code fix;
the DNSSEC get-endpoint fix from that commit is applied separately
alongside the new DNSSEC feature port.
@pmphillips

Copy link
Copy Markdown
Member

Code review passed — the postal_codezip precedence preserves both the registrar-native field and Blesta's normalized contact field. No findings. Merge pending final review and manual testing under CORE-6158.

@abdyfranco
abdyfranco merged commit a38a7d8 into blesta:master Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants