Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
bab6233d
Commit
bab6233d
authored
Dec 05, 2014
by
webchick
Browse files
Issue
#2388215
by freblasty, tim.plunkett: Drag and drop is broken.
parent
60950f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/common.inc
View file @
bab6233d
...
@@ -2159,7 +2159,7 @@ function drupal_attach_tabledrag(&$element, array $options) {
...
@@ -2159,7 +2159,7 @@ function drupal_attach_tabledrag(&$element, array $options) {
// If a subgroup or source isn't set, assume it is the same as the group.
// If a subgroup or source isn't set, assume it is the same as the group.
$target
=
isset
(
$options
[
'subgroup'
])
?
$options
[
'subgroup'
]
:
$group
;
$target
=
isset
(
$options
[
'subgroup'
])
?
$options
[
'subgroup'
]
:
$group
;
$source
=
isset
(
$options
[
'source'
])
?
$options
[
'source'
]
:
$target
;
$source
=
isset
(
$options
[
'source'
])
?
$options
[
'source'
]
:
$target
;
$element
[
'#attached'
][
'drupalSettings'
][
$options
[
'table_id'
]][
$group
][
$tabledrag_id
]
=
array
(
$element
[
'#attached'
][
'drupalSettings'
][
'tableDrag'
][
$options
[
'table_id'
]][
$group
][
$tabledrag_id
]
=
array
(
'target'
=>
$target
,
'target'
=>
$target
,
'source'
=>
$source
,
'source'
=>
$source
,
'relationship'
=>
$options
[
'relationship'
],
'relationship'
=>
$options
[
'relationship'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment