Merge pull request #707 from SvenRoederer/fix/freifunk-communitysetting-selection...
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 10 May 2016 09:31:38 +0000 (12:31 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 10 May 2016 09:31:38 +0000 (12:31 +0300)
luci-mod-freifunk: fix lookup of community-name

modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua

index 0d3d971..b08366d 100644 (file)
@@ -16,7 +16,7 @@ community.rmempty = false
 local profile
 for profile in fs.glob(profiles) do
        local name = uci:get_first(profile, "community", "name") or "?"
-       community:value(profile, name)
+       community:value(string.gsub(profile, "/etc/config/profile_", ""), name)
 end