luci-app-olsr: handle empty result for non-status tables
[oweals/luci.git] / modules / luci-base / luasrc / model / cbi / admin_network / proto_dhcp.lua
index 84d6e3d2ee876b8ea99f55e2ae20963b32ac720c..6e04465ac9e98b700dcee1fba5bddc5c0da5d636 100644 (file)
@@ -1,4 +1,4 @@
--- Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org>
+-- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
 -- Licensed to the public under the Apache License 2.0.
 
 local map, section, net = ...
@@ -53,6 +53,7 @@ metric.datatype    = "uinteger"
 
 clientid = section:taboption("advanced", Value, "clientid",
        translate("Client ID to send when requesting DHCP"))
+clientid.datatype  = "hexstring"
 
 
 vendorclass = section:taboption("advanced", Value, "vendorid",