Task #59112 » 59112_v2.patch
typo3/sysext/backend/Classes/Form/Element/InlineElement.php | ||
---|---|---|
}
|
||
}
|
||
}
|
||
if (count($relatedRecords['records']) > 1
|
||
&& isset($GLOBALS['TCA'][$table]['columns'][$field]['config']['foreign_sortby'])
|
||
) {
|
||
$sortField = $GLOBALS['TCA'][$table]['columns'][$field]['config']['foreign_sortby'];
|
||
usort($relatedRecords['records'], function (array $a, array $b) use ($sortField) {
|
||
return $a[$sortField] > $b[$sortField];
|
||
});
|
||
}
|
||
return $relatedRecords;
|
||
}
|
||
- « Previous
- 1
- 2
- 3
- Next »