Skip to content
Snippets Groups Projects
Verified Commit ac66ac91 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

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

parent b0f063e8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment