Project

General

Profile

Actions

Bug #20073

closed

IRRE child records with a select for static_info_currencies don't get rendered

Added by Niels Pardon over 15 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-02-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20632: Backend TYPO3 AJAX-Interface: json encoded result empty if it contains non-utf-8 charactersClosedBenni Mack2009-06-19

Actions
Actions #1

Updated by Oliver Hader over 15 years ago

Could you please post the accordant TCA definition of that field?

Actions #2

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(
'' => '',
),
),
),
Actions #3

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.

Actions #4

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.

Actions #5

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?

Actions #6

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.

Actions

Also available in: Atom PDF