Merge pull request #25 from flxbot/patch-1

Fixes serious issue in fixSortColumn caused in recent updates
This commit is contained in:
Ed Chipman 2013-01-27 07:04:50 -08:00
commit 7a9916bcf5
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
}
}
}
?>
?>