Fixed incompatible APIs in CBI

This commit is contained in:
Steven Barth 2008-08-27 22:02:38 +00:00
parent 11bcdfd91a
commit a3fcd87a71

View 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