diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index f3003a8..401b965 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -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 } } } -?> \ No newline at end of file +?>