mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 09:27:16 +02:00
Fix registrar console to show type-less registrar contacts
RegistrarContacts are allowed to have no "types" specified (they can also have multiple types). However, the registrar console displays the contacts for the logged-in registrar grouped by type into sections, and contacts with no type were simply being omitted from the listing, which was confusing because you can't even log into the console unless your email is listed as a contact, and yet you might then visit the contact settings page and see (apparently) no configured contacts. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152302159
This commit is contained in:
parent
09393dc8ce
commit
794743c7bc
3 changed files with 9 additions and 3 deletions
|
@ -115,7 +115,9 @@ registry.registrar.ContactSettings.prototype.renderItem = function(rspObj) {
|
|||
var contact = contacts[c];
|
||||
var types = contact.types;
|
||||
if (!types) {
|
||||
continue;
|
||||
// If the contact has no types, synthesize an "OTHER" type so that it
|
||||
// still will be displayed in the console.
|
||||
types = 'OTHER';
|
||||
}
|
||||
types = types.split(',');
|
||||
for (var t in types) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue