Bug #60913
Cannot edit lazy loaded objects
| Status: | Resolved | Start date: | 2014-08-12 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assigned To: | - | % Done: | 0% |
|
| Category: | Fluid | Spent time: | - | |
| Target version: | next-patchlevel | |||
| TYPO3 Version: | 6.2 | Is Regression: | No | |
| PHP Version: | Sprint Focus: | |||
| Complexity: |
Description
Lazy loaded objects cannot be edited through Fluid forms.
Given the following form:
<f:form name="bar" object="{foo.bar}">
<f:form.textfield property="propertyOfBar"/>
<f:form.submit value="Update"/>
</f:form>
If "bar" of "foo" is an instance of TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy the initial check in TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper::renderHiddenIdentityField fails because the LazyLoadingProxy instance cannot be an instance of TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject. This prevents the hidden identity field from being rendered which makes editing impossible.
Related issues
History
#1 Updated by Stefan Froemken 11 months ago
- Status changed from New to Resolved
Applied in changeset 66d5ac3ad72e92b4158f9d09cf9ae8e0ca6b03c7.
