Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
paragraphs
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
paragraphs
Merge requests
!119
fix: properly hide order column on multivalue paragraph translations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: properly hide order column on multivalue paragraph translations
issue/paragraphs-3454273:3454273-order-select-shows
into
8.x-1.x
Overview
0
Commits
1
Pipelines
3
Changes
1
Merged
Ariel Barreiro
requested to merge
issue/paragraphs-3454273:3454273-order-select-shows
into
8.x-1.x
1 year ago
Overview
0
Commits
1
Pipelines
3
Changes
1
Expand
Closes
#3454273
0
0
Merge request reports
Compare
8.x-1.x
version 2
84dccae2
10 months ago
version 1
932f86a7
1 year ago
8.x-1.x (base)
and
latest version
latest version
84dccae2
1 commit,
10 months ago
version 2
84dccae2
1 commit,
10 months ago
version 1
932f86a7
1 commit,
1 year ago
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
paragraphs.module
+
4
−
4
Options
@@ -427,13 +427,13 @@ function paragraphs_preprocess_field_multiple_value_form(&$variables) {
if
(
isset
(
$variables
[
'table'
][
'#tabledrag'
]))
{
// Remove the tabledrag.
unset
(
$variables
[
'table'
][
'#tabledrag'
]);
unset
(
$variables
[
'table'
][
'#header'
][
1
]);
unset
(
$variables
[
'table'
][
'#header'
][
2
]);
foreach
(
$variables
[
'table'
][
'#rows'
]
as
$key
=>
$value
)
{
$variables
[
'table'
][
'#rows'
][
$key
][
'data'
][
0
][
'class'
][]
=
'paragraph-bullet'
;
// Restore the removed weight and give access FALSE.
if
(
isset
(
$value
[
'data'
][
2
]))
{
$variables
[
'table'
][
'#rows'
][
$key
][
'data'
][
1
][
'data'
][
'_weight'
]
=
$value
[
'data'
][
2
][
'data'
];
unset
(
$variables
[
'table'
][
'#rows'
][
$key
][
'data'
][
2
]);
if
(
isset
(
$value
[
'data'
][
3
]))
{
$variables
[
'table'
][
'#rows'
][
$key
][
'data'
][
1
][
'data'
][
'_weight'
]
=
$value
[
'data'
][
3
][
'data'
];
unset
(
$variables
[
'table'
][
'#rows'
][
$key
][
'data'
][
3
]);
$variables
[
'table'
][
'#rows'
][
$key
][
'data'
][
1
][
'data'
][
'_weight'
][
'#access'
]
=
FALSE
;
}
}
Loading