Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix smarty form_collection_field #1843
A performance problem was introduced after this PR: #1613 because the Form::createView() method create all form view on each call.
This problem comes from the fact that TheliaSmarty/Template/Plugins/Form::renderFormCollectionField() doesn't have the current form view field.
My fixed method scan the current form field and retrieve this form field view from the parser context current form view.
I'm not convinced this is the right way, I tried with PropertyPath to retrieve the form field view but the performance was lower.
If anyone has another idea ..?