Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ac66ac91
Verified
Commit
ac66ac91
authored
7 years ago
by
Lee Rowlands
Browse files
Options
Downloads
Patches
Plain Diff
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
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/forum/forum.module
+1
-0
1 addition, 0 deletions
core/modules/forum/forum.module
core/modules/forum/templates/forums.html.twig
+1
-0
1 addition, 0 deletions
core/modules/forum/templates/forums.html.twig
with
2 additions
and
0 deletions
core/modules/forum/forum.module
+
1
−
0
View file @
ac66ac91
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
core/modules/forum/templates/forums.html.twig
+
1
−
0
View file @
ac66ac91
...
@@ -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.
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment