gluon-web-model: remove unused tag_invalid and tag_missing fields

This commit is contained in:
Matthias Schiffer 2020-05-08 21:53:59 +02:00 committed by Andreas Ziegler
parent 11a3b56617
commit e6859ca031

View File

@ -207,20 +207,11 @@ end
function AbstractValue:add_error(type, msg) function AbstractValue:add_error(type, msg)
self.error = msg or type self.error = msg or type
if type == "invalid" then
self.tag_invalid = true
elseif type == "missing" then
self.tag_missing = true
end
self.state = M.FORM_INVALID self.state = M.FORM_INVALID
end end
function AbstractValue:reset() function AbstractValue:reset()
self.error = nil self.error = nil
self.tag_invalid = nil
self.tag_missing = nil
self.data = nil self.data = nil
self.state = M.FORM_NODATA self.state = M.FORM_NODATA