Skip to content

Limit WHOIS ID fields to supported TLDs #561

Open
YumeChaan wants to merge 7 commits into
masterfrom
INTGRTNS-529-WHMCS-Company-or-Individual-Id-field-mandatory-for-all-TLDs-regardless-of-requirement
Open

Limit WHOIS ID fields to supported TLDs #561
YumeChaan wants to merge 7 commits into
masterfrom
INTGRTNS-529-WHMCS-Company-or-Individual-Id-field-mandatory-for-all-TLDs-regardless-of-requirement

Conversation

@YumeChaan

Copy link
Copy Markdown
Collaborator
  • Added TLD validation for WHOIS contact ID fields
  • Hide ID-related WHOIS fields for unsupported TLDs
  • Added TLD-specific label mapping for identification fields

Copilot AI review requested due to automatic review settings June 18, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds TLD-based handling for WHOIS identification fields in the client area so ID-related fields are only shown/required for supported TLDs, with TLD-specific label mapping via language keys.

Changes:

  • Introduced supported-TLD checks and TLD parsing to decide whether to require or remove WHOIS ID fields on clientareadomaincontactinfo.
  • Added TLD-to-language-key mapping for the “Company or Individual ID” label (including special handling for Spanish second-level TLDs).
  • Added new English override strings for it/se/fi CORI labels.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
modules/registrars/openprovider/Controllers/Hooks/ClientAreaFooterController.php Adds TLD detection + conditional JS to require/rename ID fields for supported TLDs and remove them otherwise.
lang/overrides/english.php Adds missing English translation keys for CORI labels for additional TLDs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/registrars/openprovider/Controllers/Hooks/ClientAreaFooterController.php Outdated
Comment thread modules/registrars/openprovider/Controllers/Hooks/ClientAreaFooterController.php Outdated
Comment thread modules/registrars/openprovider/Controllers/Hooks/ClientAreaFooterController.php Outdated
YumeChaan and others added 3 commits June 30, 2026 03:50
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread modules/registrars/openprovider/Controllers/Hooks/ClientAreaFooterController.php Outdated
Comment thread modules/registrars/openprovider/Controllers/Hooks/ClientAreaFooterController.php Outdated
Comment thread lang/overrides/english.php Outdated
@YumeChaan YumeChaan requested a review from avishka-ra June 29, 2026 22:49
Comment thread lang/overrides/english.php Outdated
@YumeChaan YumeChaan requested a review from avishka-ra July 2, 2026 20:13
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.

4 participants