Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap_barrio-3401762
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
bootstrap_barrio-3401762
Commits
55f43c09
Commit
55f43c09
authored
3 years ago
by
Alberto Siles
Committed by
alberto_sv
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix select conflict
parent
87b7c586
No related branches found
Branches containing commit
Tags
5.1.6
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap_barrio.theme
+1
-7
1 addition, 7 deletions
bootstrap_barrio.theme
with
1 addition
and
7 deletions
bootstrap_barrio.theme
+
1
−
7
View file @
55f43c09
...
...
@@ -441,6 +441,7 @@ function bootstrap_barrio_preprocess_form_element(&$variables) {
* Implements hook_preprocess_select() for adding classes to select elements.
*/
function
bootstrap_barrio_preprocess_select
(
&
$variables
)
{
$variables
[
'customtype'
]
=
theme_get_setting
(
'bootstrap_barrio_select'
);
if
(
isset
(
$variables
[
'attributes'
][
'class'
]))
{
if
(
is_object
(
$variables
[
'attributes'
][
'class'
]))
{
if
(
in_array
(
'error'
,
$variables
[
'attributes'
][
'class'
]
->
value
()))
{
...
...
@@ -462,13 +463,6 @@ function bootstrap_barrio_preprocess_form_element_label(&$variables) {
$element
=
$variables
[
'element'
];
}
/**
* Implements hook_preprocess_HOOK() for select.html.twig.
*/
function
bootstrap_barrio_preprocess_select
(
&
$variables
)
{
$variables
[
'customtype'
]
=
theme_get_setting
(
'bootstrap_barrio_select'
);
}
/**
* Implements hook_preprocess_HOOK() for file-managed-file.html.twig.
*/
...
...
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