Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
views_bootstrap-3474453
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
views_bootstrap-3474453
Commits
c8b7689a
Commit
c8b7689a
authored
4 years ago
by
Shelane French
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3183920
by Rewted: Bootstrap Media Object is duplicating content in View
parent
2b060deb
No related branches found
Branches containing commit
Tags
7.x-1.16
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
views_bootstrap.theme.inc
+3
-1
3 additions, 1 deletion
views_bootstrap.theme.inc
with
3 additions
and
1 deletion
views_bootstrap.theme.inc
+
3
−
1
View file @
c8b7689a
...
...
@@ -207,7 +207,9 @@ function template_preprocess_views_bootstrap_media_object(array &$vars) {
$vars
[
'rows'
][
$id
]
=
[];
$vars
[
'rows'
][
$id
][
'image'
]
=
$vars
[
'view'
]
->
style_plugin
->
getField
(
$id
,
$image_field
);
$vars
[
'rows'
][
$id
][
'heading'
]
=
$vars
[
'view'
]
->
style_plugin
->
getField
(
$id
,
$heading_field
);
$vars
[
'rows'
][
$id
][
'body'
]
=
$row
;
if
(
count
(
$row
[
"#view"
]
->
field
)
>
2
)
{
$vars
[
'rows'
][
$id
][
'body'
]
=
$row
;
}
}
}
...
...
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