luci-mod-freifunk: fix lookup of community-name 718/head
authorSven Roederer <freifunk@it-solutions.geroedel.de>
Sun, 24 Apr 2016 20:38:26 +0000 (22:38 +0200)
committerSven Roederer <freifunk@it-solutions.geroedel.de>
Tue, 10 May 2016 22:51:53 +0000 (00:51 +0200)
commit30fbac75ac7f48cf50dcf9c628c020b59d26c764
treec3940e7b5b94f4f6780086c98f0364a682749221
parentc0ae328b63fc706d10b68462c9ba0242c5dda5a0
luci-mod-freifunk: fix lookup of community-name

restore the lookup of the freifunk community-name stored in
uci "freifunk.community.name".
In https://github.com/openwrt/luci/commit/9780ee382e72f8a5fb69e337a3fcc51fc0914883
the value changed to the complete path of the community-profile, e.g.
"/etc/config/profile_berlin". This causes lookup problems on other
pages, like "mod-freifunk -> overview -> index" (view/freifunk/index.htm line37, line 54).
And as the option suggests it's the community-name not the community-profile path.

This is a backport of https://github.com/openwrt/luci/commit/61c7157a66b4bbce7d110cc0de8164bd2bd57798

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua