Project

General

Profile

Bug #60913 ยป fluid-form-lazyloadingproxy.patch

Load lazy loading proxy on rendering hidden identity field - Mathias Brodala, 2014-08-12 14:01

View differences:

typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormViewHelper.php
* @see \TYPO3\CMS\Extbase\Mvc\Controller\Argument::setValue()
*/
protected function renderHiddenIdentityField($object, $name) {
if (is_object($object) && $object instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) {
$object = $object->_loadRealInstance();
}
if (!is_object($object)
|| !($object instanceof \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject)
|| ($object->_isNew() && !$object->_isClone())) {
    (1-1/1)