Problem/Motivation
The status report shows this error.
Notice: Undefined index: title in Drupal\system\SystemManager->Drupal\system\{closure}() (line 113 of core/modules/system/src/SystemManager.php).
This happens because config_tools_requirements() is setting $requirements['git']['description'] instead of $requirements['git_executable']['description'].
if (class_exists(GitWrapper::class)) {
try {
$git_wrapper = new GitWrapper();
}
catch (GitException $gitException) {
$requirements['git_executable']['title'] = t('Git executable');
$requirements['git_executable']['value'] = t('Not found');
$requirements['git']['description'] = t(
"The %class class isn't able to find the Git executable, which is required from the %module module.",
['%class' => GitWrapper::class, '%module' => 'Configuration Tools']
);
$requirements['git_executable']['severity'] = REQUIREMENT_ERROR;
return $requirements;
}
Comments
Comment #3
tim-dielsProvided merge request. Please review.
Comment #4
avpadernoComment #7
avpadernoThank you!