Adido / formz

Form Builder extra for MODX Revolution
8 stars 9 forks source link

Bug: error messages not being parsed in some situations #13

Open hugopeek opened 10 years ago

hugopeek commented 10 years ago

I don't exactly know what's going on, but the error messages and their placeholders for the classnames are not always being parsed..

For some strange reason everything is working fine if the Formz snippet call is in the content more than 1 time, or if it is called cached... So all of this actually works:

[[!fmzForms? &id=`1`]]
[[!fmzForms? &id=`1`]]
[[!If?
  &subject=`[[RenderSidebar]]`
  &operator=`!empty`
  &then=`[[!fmzForms? &id=`1`]]`
  &else=`[[!fmzForms? &id=`1`]]`
]]
[[fmzForms? &id=`1`]]

But this doesn't:

[[!fmzForms? &id=`1`]]

So the solution for me now is to call it cached, but I don't know (yet) if everything's still working as intended then... What do you think?