summaryrefslogtreecommitdiffstats
path: root/acf2/model/model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf2/model/model.lua')
-rw-r--r--acf2/model/model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/acf2/model/model.lua b/acf2/model/model.lua
index e17d328..c6c5306 100644
--- a/acf2/model/model.lua
+++ b/acf2/model/model.lua
@@ -204,7 +204,7 @@ function M.Model:init(context)
function mt.validate()
for _, f in ipairs(_members(Field)) do
if mt.match(f.condition or {}) then f:validate_saved()
- elseif f:editable() then f:_save() end
+ elseif f:_editable() then f:_save() end
end
if self.validate then self:validate() end
end