You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variable should be initialized in order to avoid warnings.
$relations = [
'result' => [].
];
try {
// Make an attempt with the FIRST configured dimension mapping enabled. The first entry SHOULD always be the default language.$fieldValue = (newResponseDataFieldValueReader())->readResponseDataField($response['result'][0], $field, $module->getServer()->getDimensionMappings()->current());
if ($fieldValue != null) {
$relations = ['result' => (array)$fieldValue];
if ($arguments['verifyRelations']) {
$relations = $module->getServer()->getClient()->getBeans($fieldValue, $relatedModule->getConnectorName());
}
}
} catch (\RuntimeException$error) {
$fieldValue = $error->getMessage();
} catch (PropertyNotAccessibleException$error) {
$fieldValue = $error->getMessage();
}
The text was updated successfully, but these errors were encountered:
3l73
changed the title
TYPO3 12: RelatedModuleViewHelper acces to non existing variable $relations
TYPO3 12: RelatedModuleViewHelper access to non existing variable $relations
Oct 8, 2024
The ViewHelper RelatedModuleViewHelper uses the variable
$relations
to retrieve relations.In case of exceptions the variable is not set which can leads to errors or at least warnings.
crossmedia_fourallportal/Classes/ViewHelpers/RelatedModuleViewHelper.php
Line 90 in 3e00a60
The variable should be initialized in order to avoid warnings.
The text was updated successfully, but these errors were encountered: