luci-base: fix luci.model.uci.get_first()
authorJo-Philipp Wich <jo@mein.io>
Sat, 7 Apr 2018 12:09:18 +0000 (14:09 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 7 Apr 2018 12:09:18 +0000 (14:09 +0200)
commit8c636c87ee14d4d0bac904b23f35b016b8cf19e0
treec73fcf159913f7561d01824bf2cb2d1a267b6945
parent646545da5665288b4ed2d8b5b852e004ec164a27
luci-base: fix luci.model.uci.get_first()

Properly propagate the config parameter to the foreach iterator in order
to fix get_first() lookups.

Fixes #1734.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/model/uci.lua