Hi all, I have two sections, the following program, s2 = m:section(TypedSection, "codemanage", translate("Change code")) s2.anonymous = true s2.addremove = false function s2.cfgsections() -------------------------> when i add cfgsections,depends unavailable! return { "_code" } end
status3 = s2:option(DummyValue, "status3", translate("status")) status3.value = "close" status3:depends("protect","enable") -------------------------> depend section one protect object! When I removed depends, status will be displayed, if not removed can not be displayed. my config: config codemanage 'code' option pinprotect 'enable' thanks all,
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel