Bug #20073
closedIRRE child records with a select for static_info_currencies don't get rendered
0%
Description
For the extension seminars we are planning to add dynamic prices to our events. The dynamic prices have a selector for the currency which gets it's values from static_info_currencies.
When clicking on the "New record" IRRE link within an event form the price form is not rendered. When removing the currency field from the price TCA the form gets displayed.
The problems seems that json_encode() has problems encoding the form and therefore returns null for $this->content['data'] in TYPO3AJAX class.
(issue imported from #M10517)
Files
Updated by Oliver Hader over 15 years ago
Could you please post the accordant TCA definition of that field?
Updated by Niels Pardon over 15 years ago
Within the table tx_seminars_seminars:
'prices' => array(
'exclude' => 1,
'label' => 'LLL:EXT:seminars/locallang_db.xml:tx_seminars_seminars.prices',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_seminars_prices',
'foreign_field' => 'seminar',
'maxitems' => 999,
),
),
And here's the problematic part within tx_seminars_prices:
'currency' => array(
'exclude' => 1,
'label' => 'LLL:EXT:seminars/locallang_db.xml:tx_seminars_prices.currency',
'config' => array(
'type' => 'select',
'internal_type' => 'db',
'allowed' => 'static_currencies',
'foreign_table' => 'static_currencies',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
'items' => array(
'' => '',
),
),
),
Updated by Niels Pardon over 15 years ago
I've uploaded a test extension. Try reproducing by creating a "Parent" record and click on the "Create new record" link to create new "Price" IRRE relation.
Updated by Stanislas Rolland over 15 years ago
I think that when responding to an IRRE Ajax call while the backend is not utf-8-encoded, the data should be utf-8-encoded before submitting it to json_encode.
Updated by Benni Mack about 15 years ago
yup. this is now handled in the TYPO3 core. Can you check if this bug still exists then?
Updated by Alexander Opitz over 11 years ago
- Status changed from Accepted to Closed
- Target version deleted (
0)
No response in over one year => closed.