Bug #21931

Child will not be saved, if inline-element was closed

Added by Stefan Froemken over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-01-08
Due date:
% Done:

0%

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

Description

Look at my configuration below. In parent-record I can add new relations to my defined child-records without any problems. But when I try to add a new child-record while beeing in the parent-record...the new inline-element (grey line) should not be closed. It MUST be expanded/opened. If not: The child-record will be created with an empty label but intermediate table was correct.

Further I thought that the foreign_field saves the number of relations of the other table. This work...but only from parent-record to child-record. When I open phpmyadmin and have a look for child-table, then there is no value in parent-row.

Table category:
...
'selfrating' => array (
'exclude' => 0,
'label' => 'LLL:EXT:sf_wsf_mitglieder/locallang_db.xml:tx_sfwsfmitglieder_category.selfrating',
'config' => array (
'type' => 'inline',
'foreign_table' => 'tx_sfwsfmitglieder_category_selfrating',
'foreign_field' => 'category',
'foreign_selector' => 'selfrating',
'foreign_label' => 'selfrating',
'foreign_unique' => 'selfrating',
'maxitems' => 9,
'appearance' => array (
'useSortable' => 1,
'useCombination' => 1,
),
)
),
...
Table: tx_sfwsfmitglieder_category_selfrating
$TCA['tx_sfwsfmitglieder_category_selfrating'] = array (
'ctrl' => $TCA['tx_sfwsfmitglieder_category_selfrating']['ctrl'],
'interface' => array (
'showRecordFieldList' => 'category,selfrating'
),
'feInterface' => $TCA['tx_sfwsfmitglieder_category_selfrating']['feInterface'],
'columns' => array (
'category' => array (
'exclude' => 0,
'label' => 'LLL:EXT:sf_wsf_mitglieder/locallang_db.xml:tx_sfwsfmitglieder_category_selfrating.category',
'config' => array (
'type' => 'select',
'foreign_table' => 'tx_sfwsfmitglieder_category',
'maxitems' => 1,
)
),
'selfrating' => array (
'exclude' => 0,
'label' => 'LLL:EXT:sf_wsf_mitglieder/locallang_db.xml:tx_sfwsfmitglieder_category_selfrating.selfrating',
'config' => array (
'type' => 'select',
'foreign_table' => 'tx_sfwsfmitglieder_selfrating',
'maxitems' => 1,
)
),
),
'types' => array (
'0' => array('showitem' => 'category;;;;1-1-1, selfrating')
),
'palettes' => array (
'1' => array('showitem' => '')
)
);
...
Table: selfrating
'category' => array (
'exclude' => 0,
'label' => 'LLL:EXT:sf_wsf_mitglieder/locallang_db.xml:tx_sfwsfmitglieder_selfrating.category',
'config' => array (
'type' => 'inline',
'foreign_table' => 'tx_sfwsfmitglieder_category_selfrating',
'foreign_field' => 'selfrating',
'foreign_selector' => 'category',
'foreign_label' => 'category',
'foreign_unique' => 'category',
'maxitems' => 1000,
'appearance' => array (
'useSortable' => 1,
'useCombination' => 1,
),
)
),
...
(issue imported from #M13186)

#1

Updated by Stefan Froemken over 11 years ago

RTFM

Quote: Of course it only works if there is at least a sorting column defined in TCA for that table which stores the information.

You can close this bug

#2

Updated by Chris topher about 11 years ago

Closed as requested.

Also available in: Atom PDF