- Issue created by @lpeidro
- Issue was unassigned.
- Status changed to Fixed
over 1 year ago 8:54am 28 April 2023
In any cases, I not at this moment what is the reason, in one project al least, the report "Modules Status (sync config files)", in the section "Package reports", throw this error:
Warning: Undefined array key "#summary_attributes" in template_preprocess_details() (line 249 of core/includes/form.inc).
template_preprocess_details(Array, 'details', Array)
Maybe it is a problem this installation in particular, because I checked in other and work properly. If I added this parameter to the render array in the module, it works properly.
Add the parameter in the "#render_array", it could be a require parameter (https://api.drupal.org/api/drupal/core%21modules%21system%21templates%21...) (file: "XrayAuditModulesPlugin.php"):
$builds[$type] = [
'#theme' => 'details',
'#title' => $group_info[$type]['title'],
'#description' => $group_info[$type]['description'],
'#attributes' => ['class' => ['package-listing']],
'#summary_attributes' => [],
'#children' => [
'tables' => [
'#theme' => 'table',
'#header' => $headerTable,
'#rows' => $group_modules,
]
]
];
}
Fixed
1.1
Code