-
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Fix value resolution in SOLR_RELATION
This commit fixes issues with the resolution of values in SOLR_RELATION, fixed is the resolution of: - foreignLabelFields (2nd level+) - multiple values in m:n relations - nested m:n relations - nested multi values Additionally the missing stdWrap functionality on values from mm relations is added. Integration tests are added to ensure the right behaviour of SOLR_RELATION. Resolves: #3152 Resolves: #3408
- Loading branch information
1 parent
ed3ce05
commit 6773efe
Showing
8 changed files
with
1,013 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
172 changes: 172 additions & 0 deletions
172
Tests/Integration/ContentObject/Fixtures/TCA/tx_fakeextension_domain_model_bar.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
<?php | ||
|
||
return [ | ||
'ctrl' => [ | ||
'title' => 'tx_fakeextension_domain_model_bar', | ||
'label' => 'title', | ||
'tstamp' => 'tstamp', | ||
'crdate' => 'crdate', | ||
'cruser_id' => 'cruser_id', | ||
'versioningWS' => true, | ||
'origUid' => 't3_origuid', | ||
'editlock' => 'editlock', | ||
'languageField' => 'sys_language_uid', | ||
'transOrigPointerField' => 'l10n_parent', | ||
'transOrigDiffSourceField' => 'l10n_diffsource', | ||
'sortby' => 'sorting', | ||
'delete' => 'deleted', | ||
'enablecolumns' => [ | ||
'disabled' => 'hidden', | ||
'starttime' => 'starttime', | ||
'endtime' => 'endtime', | ||
], | ||
'searchFields' => 'uid', | ||
], | ||
'columns' => [ | ||
'sys_language_uid' => [ | ||
'exclude' => 1, | ||
'label' => 'sys_language_uid', | ||
'config' => [ | ||
'type' => 'select', | ||
'renderType' => 'selectSingle', | ||
'special' => 'languages', | ||
'items' => [ | ||
[ | ||
'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', | ||
-1, | ||
'flags-multiple', | ||
], | ||
], | ||
'default' => 0, | ||
], | ||
], | ||
'l10n_parent' => [ | ||
'displayCond' => 'FIELD:sys_language_uid:>:0', | ||
'label' => 'l10n_parent', | ||
'config' => [ | ||
'type' => 'select', | ||
'renderType' => 'selectSingle', | ||
'items' => [ | ||
['', 0], | ||
], | ||
'foreign_table' => 'tx_fakeextension_domain_model_foo', | ||
'foreign_table_where' => 'AND tx_fakeextension_domain_model_foo.pid=###CURRENT_PID### AND tx_fakeextension_domain_model_foo.sys_language_uid IN (-1,0)', | ||
], | ||
], | ||
'l10n_diffsource' => [ | ||
'config' => [ | ||
'type' => 'passthrough', | ||
'default' => '', | ||
], | ||
], | ||
'hidden' => [ | ||
'exclude' => 1, | ||
'label' => 'hidden', | ||
'config' => [ | ||
'type' => 'check', | ||
'default' => 0, | ||
], | ||
], | ||
'cruser_id' => [ | ||
'label' => 'cruser_id', | ||
'config' => [ | ||
'type' => 'passthrough', | ||
], | ||
], | ||
'pid' => [ | ||
'label' => 'pid', | ||
'config' => [ | ||
'type' => 'passthrough', | ||
], | ||
], | ||
'crdate' => [ | ||
'label' => 'crdate', | ||
'config' => [ | ||
'type' => 'passthrough', | ||
], | ||
], | ||
'tstamp' => [ | ||
'label' => 'tstamp', | ||
'config' => [ | ||
'type' => 'passthrough', | ||
], | ||
], | ||
'sorting' => [ | ||
'label' => 'sorting', | ||
'config' => [ | ||
'type' => 'passthrough', | ||
], | ||
], | ||
'starttime' => [ | ||
'exclude' => 1, | ||
'label' => 'starttime', | ||
'config' => [ | ||
'type' => 'input', | ||
'size' => 8, | ||
'eval' => 'datetime', | ||
'default' => 0, | ||
'renderType' => 'inputDateTime', | ||
['behaviour' => ['allowLanguageSynchronization' => true]], | ||
], | ||
], | ||
'endtime' => [ | ||
'exclude' => 1, | ||
'label' => 'endtime', | ||
'config' => [ | ||
'type' => 'input', | ||
'size' => 8, | ||
'eval' => 'datetime', | ||
'default' => 0, | ||
'renderType' => 'inputDateTime', | ||
['behaviour' => ['allowLanguageSynchronization' => true]], | ||
], | ||
], | ||
'title' => [ | ||
'exclude' => 0, | ||
'l10n_mode' => 'prefixLangTitle', | ||
'label' => 'title', | ||
'config' => [ | ||
'type' => 'input', | ||
'size' => 60, | ||
'eval' => 'required', | ||
], | ||
], | ||
'main_category' => [ | ||
'exclude' => 0, | ||
'label' => 'main_category', | ||
'config' => [ | ||
'type' => 'select', | ||
'renderType' => 'selectSingle', | ||
'foreign_table' => 'sys_category', | ||
'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0)', | ||
'size' => 1, | ||
'minitems' => 0, | ||
'maxitems' => 1, | ||
['behaviour' => ['allowLanguageSynchronization' => true]], | ||
], | ||
], | ||
'inline_relation_parent' => [ | ||
'config' => [ | ||
'type' => 'passthrough', | ||
], | ||
], | ||
'mm_assignments' => [ | ||
'exclude' => 0, | ||
'label' => 'mm_assignments', | ||
'config' => [ | ||
'type' => 'select', | ||
'renderType' => 'selectMultipleSideBySide', | ||
'foreign_table' => 'tx_fakeextension_domain_model_foo', | ||
'MM' => 'tx_fakeextension_foo_bar_mm', | ||
'MM_opposite_field' => 'mm_assignments', | ||
'foreign_table_where' => 'AND (tx_fakeextension_domain_model_foo.sys_language_uid = 0 OR tx_fakeextension_domain_model_foo.l10n_parent = 0)', | ||
'size' => 10, | ||
], | ||
], | ||
], | ||
'types' => [ | ||
'0' => [ | ||
'showitem' => 'l10n_parent, l10n_diffsource,title,main_category,mm_assignments', | ||
], | ||
], | ||
]; |
Oops, something went wrong.