Bug #76063

foreign_table and the foureign_uid

Added by Jan Schröder about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-05-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I have a problem and I'm not sure whether it's a bug.

I have a table named "Berufe" and a second one named "Subbranche".
The tables are imported from another database.

My problem is the uid field.
The foreign_table_where config is working but TYPO3 try to get the UID in the subbranche table.

#TCA from Berufe

'subbranche_uid' => array(
            'exclude' => 0,
            'label' => 'Subbranche',
            'config' => array(
                'type' => 'select',
                'renderType' => 'selectSingle',
                'foreign_table' => 'tx_crm_domain_model_subbranche',
                'foreign_table_where' => 'AND tx_crm_domain_model_subbranche.subbranche_uid=###REC_FIELD_subbranche_uid### ',
                'minitems' => 0,
                'maxitems' => 1,
            ),
        ),

Is there a way to define another uid field for this foreign_table?
Or is there another solution?


Files

Bildschirmfoto 2016-05-06 um 12.01.21.png (11.2 KB) Bildschirmfoto 2016-05-06 um 12.01.21.png tx_crm_domain_model_subbranche Jan Schröder, 2016-05-06 12:10
Bildschirmfoto 2016-05-06 um 12.02.41.png (14.7 KB) Bildschirmfoto 2016-05-06 um 12.02.41.png tx_crm_domain_model_berufe Jan Schröder, 2016-05-06 12:10
Bildschirmfoto 2016-05-06 um 12.06.40.png (15 KB) Bildschirmfoto 2016-05-06 um 12.06.40.png Backend (Problem) Jan Schröder, 2016-05-06 12:10

Also available in: Atom PDF