diff options
Diffstat (limited to 'acf2/model/model.lua')
-rw-r--r-- | acf2/model/model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/acf2/model/model.lua b/acf2/model/model.lua index 7d026da..a7609b0 100644 --- a/acf2/model/model.lua +++ b/acf2/model/model.lua @@ -201,7 +201,7 @@ function M.Model:init(context) function mt.validate() for _, f in ipairs(_members(Field)) do - if f.editable then + if f:editable() then if mt.match(f.condition or {}) then f:validate_saved() else f:_save() end end |