From 39029888782ce7ea6862cbdfd4322e8b6b14843e Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Fri, 20 Mar 2015 09:06:11 +0100 Subject: [PATCH] luci-app-ddns: fix errors in global.lua fix dispatcher and validation errors in global.lua Signed-off-by: Christian Schoenebeck --- applications/luci-app-ddns/Makefile | 2 +- applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-ddns/Makefile b/applications/luci-app-ddns/Makefile index f20b49e90..1bffcaa4b 100644 --- a/applications/luci-app-ddns/Makefile +++ b/applications/luci-app-ddns/Makefile @@ -10,7 +10,7 @@ PKG_NAME:=luci-app-ddns # Version == major.minor.patch # increase on new functionality (minor) or patches (patch) -PKG_VERSION:=2.2.1 +PKG_VERSION:=2.2.2 # Release == build # increase on changes of translation files diff --git a/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua b/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua index e1718739f..fbd3cb337 100644 --- a/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua +++ b/applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua @@ -35,6 +35,7 @@ local ns = m:section( NamedSection, "global", "ddns", .. [[]] .. translate("For detailed information about parameter settings look here.") .. [[]] + ) -- section might not exist function ns.cfgvalue(self, section) @@ -119,7 +120,6 @@ ll.title = translate("Log length") ll.description = translate("Number of last lines stored in log files") ll.rmempty = true ll.default = "250" -ll.datatype = "and(uinteger,min(1))" function ll.validate(self, value) local n = tonumber(value) if not n or math.floor(n) ~= n or n < 1 then -- 2.25.1