Commit bab6233d authored by webchick's avatar webchick
Browse files

Issue #2388215 by freblasty, tim.plunkett: Drag and drop is broken.

parent 60950f36
...@@ -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'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment