gluon-config-mode-domain-select: fix condition to show hidden domains when selected

This commit is contained in:
Martin Weinelt 2018-03-19 04:10:32 +01:00
parent 1000c92c84
commit ea1cc39119
No known key found for this signature in database
GPG Key ID: BD4AA0528F63F17E

View File

@ -25,7 +25,7 @@ return function(form, uci)
local domain_code = domain_path:match('([^/]+)%.json$') local domain_code = domain_path:match('([^/]+)%.json$')
local domain = assert(json.load(domain_path)) local domain = assert(json.load(domain_path))
if (not domain.hide_domain and not hidden_domain_code(domain, domain_code)) or (configured and domain.domain_code == selected_domain) then if (not domain.hide_domain and not hidden_domain_code(domain, domain_code)) or (configured and domain_code == selected_domain) then
table.insert(list, { table.insert(list, {
domain_code = domain_code, domain_code = domain_code,
domain_name = domain.domain_names[domain_code], domain_name = domain.domain_names[domain_code],