Update code/forms/GridFieldSortableRows.php

fixes the bug mentiond in issue 24
This commit is contained in:
flxbot 2013-01-27 15:03:24 +01:00
parent b54e6f12cf
commit d26ae08e69
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
. ' WHERE "' . $componentField . '" = ' . $obj->ID . ' AND "' . $parentField . '" = ' . $owner->ID);
}else {
DB::query('UPDATE "' . $table
. '" SET "' . $sortColumn . '" = ' . $sortColumn = ($max + $i)
. '" SET "' . $sortColumn . '" = ' . ($max + $i)
. ' WHERE "ID" = '. $obj->ID);
}
@ -436,4 +436,4 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
}
}
}
?>
?>