 core/includes/common.inc |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/includes/common.inc b/core/includes/common.inc
index bd263ec..c7fda03 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -4574,6 +4574,9 @@ function drupal_get_library($module, $name = NULL) {
  */
 function drupal_add_tabledrag($table_id, $action, $relationship, $group, $subgroup = NULL, $source = NULL, $hidden = TRUE, $limit = 0) {
   $js_added = &drupal_static(__FUNCTION__, FALSE);
+  $tabledrag_id = &drupal_static(__FUNCTION__  . '_setting', FALSE);
+  $tabledrag_id = (!isset($tabledrag_id)) ? 0 : $tabledrag_id + 1;
+
   if (!$js_added) {
     // Add the table drag JavaScript to the page before the module JavaScript
     // to ensure that table drag behaviors are registered before any module
@@ -4585,7 +4588,7 @@ function drupal_add_tabledrag($table_id, $action, $relationship, $group, $subgro
   // If a subgroup or source isn't set, assume it is the same as the group.
   $target = isset($subgroup) ? $subgroup : $group;
   $source = isset($source) ? $source : $target;
-  $settings['tableDrag'][$table_id][$group][] = array(
+  $settings['tableDrag'][$table_id][$group][$tabledrag_id] = array(
     'target' => $target,
     'source' => $source,
     'relationship' => $relationship,
