Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #25 from flxbot/patch-1

Fixes serious issue in fixSortColumn caused in recent updates
  • Loading branch information...
commit 7a9916bcf5519b57b359c712933fcc3f7c0b1bd8 2 parents b54e6f1 + d26ae08
@UndefinedOffset authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/forms/GridFieldSortableRows.php
View
4 code/forms/GridFieldSortableRows.php
@@ -181,7 +181,7 @@ protected function fixSortColumn($gridField, SS_List $dataList) {
. ' 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 @@ protected function sortToPage(GridField $gridField, $data) {
}
}
}
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.