Browse Source

ffho-config-mode-site-select: fix config-mode

Karsten Böddeker 6 years ago
parent
commit
468c379103

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

@@ -22,11 +22,11 @@ return function(form, uci)
 	end
 
 	function o:write(data)
-		if data.community ~= uci:get('currentsite', 'current', 'name') then
-			tools.set_site_code(data.community, false)
+		if data ~= uci:get('currentsite', 'current', 'name') then
+			tools.set_site_code(data, false)
 		end
 
-		if data.community ~= default.site_code then
+		if data ~= default.site_code then
 			os.execute('sh "/lib/gluon/site-select/site-upgrade"')
 		end
 	end