Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.1.0-b1
-
Component/s: None
-
Labels:None
Description
Registrar modules provide a list of supported TLDs through the getTlds() method.
However, when creating or editing a TLD through the Domain Manager, you are allowed to select any installed Registrar. The list from getTlds() is completely ignored.
Controlling this for edit is fairly simple. I see two options:
Create a list of Registrars and their accepted TLDs and then use that to populate the Registrar list for each TLD.- Display all the Registrars, but display an error when trying to switch if the selected Registrar does not support that TLD
Controlling this for TLD creation may be more difficult. We can:
Fetch the list of Registrars via ajax after a TLD is entered, or add an additional stepAdd an additional step after the TLD is submitted in which we select the Registrar- Display all the Registrars, but display an error submit the TLD with a Registrar the does not support it
If a registrar module doesn't implement getTlds() or returns an empty list, we may want to consider treating that as acceptance of any TLD.