Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flag-3221615
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
flag-3221615
Commits
2715fcf2
Commit
2715fcf2
authored
11 years ago
by
xandeadx
Committed by
Joachim Noreiko
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1999604
by xandeadx: Fixed display field weight not applied to flag pseudofield.
parent
fc8cc6b5
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
flag.module
+1
-1
1 addition, 1 deletion
flag.module
with
1 addition
and
1 deletion
flag.module
+
1
−
1
View file @
2715fcf2
...
...
@@ -911,7 +911,7 @@ function flag_entity_view($entity, $type, $view_mode, $langcode) {
// The pseudofield output.
if
(
$flag
->
show_as_field
)
{
$entity
->
content
[
'flag
-
'
.
$flag
->
name
]
=
array
(
$entity
->
content
[
'flag
_
'
.
$flag
->
name
]
=
array
(
'#markup'
=>
$flag
->
theme
(
$flag
->
is_flagged
(
$entity_id
)
?
'unflag'
:
'flag'
,
$entity_id
,
array
(
'needs_wrapping_element'
=>
TRUE
)),
);
}
...
...
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