From 7e26fa89e9d0109b42c84e2674bbcbae530aa356 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 14 Nov 2018 20:58:32 +0100 Subject: [PATCH] luci-base: datatypes: add "unique" dummy validator Add a dummy validator for the server side so that we can start using unique in client side JS code. Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/cbi/datatypes.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/luci-base/luasrc/cbi/datatypes.lua b/modules/luci-base/luasrc/cbi/datatypes.lua index 99113e0b7..b4206e98d 100644 --- a/modules/luci-base/luasrc/cbi/datatypes.lua +++ b/modules/luci-base/luasrc/cbi/datatypes.lua @@ -460,3 +460,7 @@ function dateyyyymmdd(val) end return false end + +function unique(val) + return true +end -- 2.25.1