Skip to content

Loading…

Update code/forms/GridFieldSortableRows.php #25

Merged
merged 1 commit into from

2 participants

@flxbot

fixes the bug mentiond in issue 24

@flxbot flxbot Update code/forms/GridFieldSortableRows.php
fixes the bug mentiond in issue 24
d26ae08
@UndefinedOffset UndefinedOffset merged commit 7a9916b into UndefinedOffset:master
@UndefinedOffset

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 27, 2013
  1. @flxbot

    Update code/forms/GridFieldSortableRows.php

    flxbot committed
    fixes the bug mentiond in issue 24
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) {
}
}
}
-?>
+?>
Something went wrong with that request. Please try again.