[TYPO3-core] RFC #15657: IRRE: Foreign selector with groupdb won't add new items
Thomas Maroschik
tmaroschik at dfau.de
Tue Sep 7 15:02:05 CEST 2010
Copy of http://bugs.typo3.org/view.php?id=15657
When configuring a field like this:
'type' => 'inline',
'maxitems' => '1',
'foreign_table' => 'tx_traveldb_domain_model_arrival_port',
'foreign_selector' => 'location_code',
and the foreign selector field like this
'type' => 'group',
'internal_type' => 'db',
'size' => '1',
'maxitems' => '1',
'allowed' => 'static_unlocode',
'prepend_tname ' => '0',
and clicking on a database entry in browser.php you will get a
javascript error like this
this.getNumberOfRTE is not a function
and nothing else happens.
________________________
Attached a patch which fixes the scope in the function call
inline.makeAjaxCall('createNewRecord', [this.getNumberOfRTE(), objectId,
uid], true);
to
inline.makeAjaxCall('createNewRecord', [inline.getNumberOfRTE(),
objectId, uid], true);
IRRE works like expected afterwards
--
___________________________
Thomas Maroschik
DFAU
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_jsfuncinline_15657_v1.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100907/43dd4dea/attachment.txt>
More information about the TYPO3-team-core
mailing list