Bug #60913

Cannot edit lazy loaded objects

Added by Mathias Brodala 12 months ago. Updated 11 months ago.

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.

fluid-form-lazyloadingproxy.patch Magnifier - Load lazy loading proxy on rendering hidden identity field (895 Bytes) Mathias Brodala, 2014-08-12 14:01


Related issues

related to Core - Feature #60460: Refactor lazyLoading handling in extbase Accepted 2014-07-22
duplicates Core - Bug #60726: __identity field will not be rendered if of type @lazy Resolved 2014-08-01

History

#1 Updated by Stefan Froemken 11 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF