Index: misc/tabledrag.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tabledrag.js,v
retrieving revision 1.13
diff -u -p -r1.13 tabledrag.js
--- misc/tabledrag.js	19 Dec 2007 10:58:35 -0000	1.13
+++ misc/tabledrag.js	4 Feb 2008 13:47:47 -0000
@@ -690,9 +690,16 @@ Drupal.tableDrag.prototype.updateField =
           $('option', targetElement).each(function() {
             values.push(this.value);
           });
+          var maxVal = values[values.length - 1];
           // Populate the values in the siblings.
           $(targetClass, siblings).each(function() {
-            this.value = values.shift();
+            // If there are more items than possible values assign the maximum value to the row. 
+            if (values.length > 0) {
+              this.value = values.shift();
+            }
+            else {
+              this.value = maxVal;
+            }
           });
         }
         else {
