Fixed incompatible APIs in CBI
authorSteven Barth <steven@midlink.org>
Wed, 27 Aug 2008 22:02:38 +0000 (22:02 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 27 Aug 2008 22:02:38 +0000 (22:02 +0000)
libs/cbi/luasrc/cbi.lua

index 12bf18c2adfc9be39ee0269537814e50957d863b..a43809d2cbb77db252530eccb8e9de5921fa196c 100644 (file)
@@ -343,7 +343,7 @@ function SimpleForm.field(self, class, ...)
        end
 
        if instanceof(class, AbstractValue) then
-               local obj  = class(self, ...)
+               local obj  = class(self, section, ...)
                obj.track_missing = true
                section:append(obj)
                return obj