Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

BaseTemplate::insert in form widgets #7366

Closed
dmolineus opened this issue Oct 10, 2014 · 1 comment
Closed

BaseTemplate::insert in form widgets #7366

dmolineus opened this issue Oct 10, 2014 · 1 comment

Comments

@dmolineus
Copy link
Contributor

Form widgets in Contao 3.3 extends BaseTemplate which provides the insert() method. It does not work there because it creates a new static instance of the same object. Form widgets does not provide the setData() method.

If the insert method is called inside of a form widget template a FrontendTemplate should be created.

@leofeyer
Copy link
Member

Fixed in 23cda32.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants