Browse Source

Fix selection of the current selected site in the config wizard

Michael Schwarz 5 years ago
parent
commit
8a7a1ae9ad

+ 1 - 3
ffho-config-mode-site-select/luasrc/lib/gluon/config-mode/wizard/0200-site-select.lua

@@ -17,9 +17,7 @@ return function(form, uci)
 	o.optional = false
 
 	if uci:get_bool('gluon-setup-mode', uci:get_first('gluon-setup-mode','setup_mode'), 'configured')  then
-		o:value(default.site_code(), default.site_name())
-	else
-		o:value('')
+		o.default = default.site_code()
 	end
 
 	for _, site in pairs(sites) do