luci-base: prevent parsing the form input after cbi emergency save
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 26 May 2015 15:32:11 +0000 (17:32 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 26 May 2015 15:32:11 +0000 (17:32 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/cbi.lua

index 7c5944bf27fdf8d53b2390d184a554f5013dd0ee..45c91890a9256a9cca4ab8a41eaa58737da73e78 100644 (file)
@@ -324,6 +324,7 @@ function Map.__init__(self, config, ...)
                                luci.http.redirect(url)
                        end
                end
+               self.save = false
        end
 
        if not ok then