diff --git a/src/domains.js b/src/domains.js index 87c86f4c1..692093d1e 100644 --- a/src/domains.js +++ b/src/domains.js @@ -382,5 +382,9 @@ function removePrivateFields(domain) { // removes all fields that are not accessible by a normal user function removeRestrictedFields(domain) { var result = _.pick(domain, 'domain', 'zoneName', 'provider'); + + // always ensure config object + result.config = { hyphenatedSubdomains: !!domain.config.hyphenatedSubdomains }; + return result; } \ No newline at end of file