- πΊπΈUnited States collinhaines
This appears to have been fixed in π Node revision table class attribute should be an array Fixed .
Huh. It's frustrating that the commit is the same as #6 which sat for 18 months. But I'm glad it got fixed.
A contrib module preprocessing table elements exposed this bug, which is that #attributes['class'] is specified as a string instead of an array when creating the node_revisions_table render element. When browsing a node revisions page, error is [] operator is not supported for strings
.
Add table preprocessing:
function MODULE_preprocess_table(&$variables) {
$variables['attributes']['class'][] = 'newclass';
}
and browse to /node/XX/revisions
Fix the 'class' assignment.
See patch below.
n/a
n/a
n/a
Closed: duplicate
11.0 π₯
A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This appears to have been fixed in π Node revision table class attribute should be an array Fixed .
Huh. It's frustrating that the commit is the same as #6 which sat for 18 months. But I'm glad it got fixed.