Commit ac66ac91 authored by larowlan's avatar larowlan

Issue #2890049 by megan_m, andypost, lauriii: Forum template cannot access original topics data

parent b0f063e8
...@@ -522,6 +522,7 @@ function template_preprocess_forums(&$variables) { ...@@ -522,6 +522,7 @@ function template_preprocess_forums(&$variables) {
$table['#rows'][] = $row; $table['#rows'][] = $row;
} }
$variables['topics_original'] = $variables['topics'];
$variables['topics'] = $table; $variables['topics'] = $table;
$variables['topics_pager'] = [ $variables['topics_pager'] = [
'#type' => 'pager', '#type' => 'pager',
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* Available variables: * Available variables:
* - forums: The forums to display (as processed by forum-list.html.twig). * - forums: The forums to display (as processed by forum-list.html.twig).
* - topics: The topics to display. * - topics: The topics to display.
* - topics_original: Original topics data before modification.
* - topics_pager: The topics pager. * - topics_pager: The topics pager.
* - forums_defined: A flag to indicate that the forums are configured. * - forums_defined: A flag to indicate that the forums are configured.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment