Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap_barrio-3382683
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
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-3382683
Commits
10040d5b
Commit
10040d5b
authored
4 years ago
by
Brooke Heaton
Committed by
Alberto Siles
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3136067
by brooke_heaton: Undefined index: type in...
Issue
#3136067
by brooke_heaton: Undefined index: type in bootstrap_barrio_preprocess_form_element()
parent
1e59b502
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap_barrio.theme
+11
-9
11 additions, 9 deletions
bootstrap_barrio.theme
with
11 additions
and
9 deletions
bootstrap_barrio.theme
+
11
−
9
View file @
10040d5b
...
...
@@ -385,17 +385,19 @@ function bootstrap_barrio_preprocess_form_element(&$variables) {
if
(
isset
(
$variables
[
'element'
][
'#attributes'
]))
{
$variables
[
'input_attributes'
]
=
new
Attribute
(
$variables
[
'element'
][
'#attributes'
]);
}
switch
(
$variables
[
'type'
])
{
case
'checkbox'
:
$variables
[
'customtype'
]
=
theme_get_setting
(
'bootstrap_barrio_checkbox'
);
break
;
if
(
isset
(
$variables
[
'type'
]))
{
switch
(
$variables
[
'type'
])
{
case
'checkbox'
:
$variables
[
'customtype'
]
=
theme_get_setting
(
'bootstrap_barrio_checkbox'
);
break
;
case
'radio'
:
$variables
[
'customtype'
]
=
theme_get_setting
(
'bootstrap_barrio_radio'
);
break
;
case
'radio'
:
$variables
[
'customtype'
]
=
theme_get_setting
(
'bootstrap_barrio_radio'
);
break
;
default
:
break
;
default
:
break
;
}
}
}
...
...
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