diff options
Diffstat (limited to 'acf2/model/field.lua')
-rw-r--r-- | acf2/model/field.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/acf2/model/field.lua b/acf2/model/field.lua index 4307f6f..309249e 100644 --- a/acf2/model/field.lua +++ b/acf2/model/field.lua @@ -271,9 +271,9 @@ end function M.TreeNode:load(context, options) if context.txn and not ( - ( - options and options.create - ) or self.create or self:_load(context) + util.setdefault( + options or {}, 'create', self.create + ) or self:_load(context) ) then return end return self.itype(context, self.iparams) end |