Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
draggableviews
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
draggableviews
Merge requests
!10
Issue
#3268897
: Draggable Views breaks first column output if field contains a <drupal-placeholder> like a flag link
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3268897
: Draggable Views breaks first column output if field contains a <drupal-placeholder> like a flag link
issue/draggableviews-3268897:3268897-draggable-views-breaks
into
2.1.x
Overview
0
Commits
3
Pipelines
1
Changes
1
Open
Joe 🤘 Shindelar
requested to merge
issue/draggableviews-3268897:3268897-draggable-views-breaks
into
2.1.x
3 years ago
Overview
0
Commits
3
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
2.1.x
version 3
2880c3f0
2 years ago
version 2
2880c3f0
2 years ago
version 1
821a03df
3 years ago
2.1.x (HEAD)
and
latest version
latest version
ecab5088
3 commits,
10 months ago
version 3
2880c3f0
2 commits,
2 years ago
version 2
2880c3f0
6 commits,
2 years ago
version 1
821a03df
1 commit,
3 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
draggableviews.module
+
3
−
3
Options
@@ -107,14 +107,14 @@ function draggableviews_preprocess_views_view_table(&$variables) {
break
;
}
}
if
(
!
empty
(
$first_column
))
{
// Indent the first column that is not the draggableviews field.
$columns_title
=
$row
[
'columns'
][
$first_column
][
'content'
][
0
][
'field_output'
][
'#markup'
]
??
''
;
$indent
=
[
$variables
[
'rows'
][
$key
][
'columns'
][
$first_column
][
'content'
][
0
][
'draggableviews_indent'
]
=
[
'#theme'
=>
'indentation'
,
'#size'
=>
$draggableviews
->
getDepth
(
$key
),
'#weight'
=>
-
100
,
];
$variables
[
'rows'
][
$key
][
'columns'
][
$first_column
][
'content'
][
0
][
'field_output'
][
'#markup'
]
=
(
string
)
(
\Drupal
::
service
(
'renderer'
)
->
render
(
$indent
)
.
$columns_title
);
}
}
Loading