Closed wiphi closed 1 year ago
Hey, thanks for the contribution! I've simplified this a bit and adjusted the comments so I figured it would be easier if I did a commit directly myself :D Does that still work for you?
Of course ;) I missed the optional parameter in getOriginalPostData()->get
function. Your solution is quiet simpler.
Thank you!
Released as 5.0.1: https://github.com/terminal42/contao-mp_forms/releases/tag/5.0.1 Thanks for your contribution, Philipp!
You're welcome 😁
Thanks for this cool extension for Contao. I found a little bug with default fields values.
If a form uses fields with default values set in the backend form generator, the default values get los. This PR checks if no post data is avaible and if the form fields has any default value instead to display.