Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
components
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
components
Merge requests
!28
Issue
#3107993
: Template is not defined error
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3107993
: Template is not defined error
issue/components-3107993:3107993-template-is-not
into
8.x-2.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Issue #3107993: Template is not defined error
John Albin Wilkins
requested to merge
issue/components-3107993:3107993-template-is-not
into
8.x-2.x
Jul 29, 2021
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
8.x-2.x
8.x-2.x (HEAD)
and
latest version
latest version
9df1b634
1 commit,
Jul 29, 2021
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Template/Loader/ComponentsLoader.php
+
5
−
0
View file @ fac9c3f8
Edit in single-file editor
Open in Web IDE
Show full file
@@ -119,6 +119,11 @@ class ComponentsLoader extends FilesystemLoader {
}
$theme_info
=
$this
->
componentsInfo
->
getAllThemeInfo
();
// Add theme info (theme names) to active themes - issue #3107993.
if
(
!
empty
(
$theme_info
))
{
$active_themes
=
array_unique
(
array_merge
(
$active_themes
,
array_keys
(
$theme_info
)));
}
// Templates in namespaces should be loaded from paths in this priority:
//
// 1. active theme paths
Loading