From d26ae08e69c26696f1054aa500872d0883d96f93 Mon Sep 17 00:00:00 2001 From: flxbot Date: Sun, 27 Jan 2013 15:03:24 +0100 Subject: [PATCH] Update code/forms/GridFieldSortableRows.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes the bug mentiond in issue 24 --- code/forms/GridFieldSortableRows.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?>