Bug #23513
closedIRRE: Foreign selector with groupdb won't add new items
0%
Description
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.
(issue imported from #M15657)
Files
Updated by Thomas Maroschik about 14 years ago
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
Updated by Stanislas Rolland about 14 years ago
Chances are NULL that you will get a reply in the Core List if your entry is not correctly formated.
Please upload a small extension that would allow to reproduce the error and test the patch.
Updated by Stanislas Rolland about 14 years ago
Patch committed to SVN TYPO3core trunk (revision 9133), branch TYPO3_4-4 (revision 9134) and branch TYPO3_4-3 (revision 9135).