From f921aff29defd80a5467dc4bc8fb05a368cd1bf4 Mon Sep 17 00:00:00 2001 From: Ed Chipman Date: Sat, 13 Feb 2016 13:51:01 -0400 Subject: [PATCH] Fixed single unit test failure on postgres --- tests/forms/GridFieldSortableRowsAutoSortTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/forms/GridFieldSortableRowsAutoSortTest.php b/tests/forms/GridFieldSortableRowsAutoSortTest.php index ab90c71..267f055 100644 --- a/tests/forms/GridFieldSortableRowsAutoSortTest.php +++ b/tests/forms/GridFieldSortableRowsAutoSortTest.php @@ -94,7 +94,7 @@ class GridFieldSortableRowsAutoSortTest extends SapphireTest { Versioned::reading_stage('Live'); //Get live instance - $obj=Versioned::get_one_by_stage('GridFieldAction_SortOrder_VPlayer', 'Live', 'ID='.$list->last()->ID); + $obj=Versioned::get_one_by_stage('GridFieldAction_SortOrder_VPlayer', 'Live', '"ID"='.$list->last()->ID); //Insure sort ran $this->assertEquals(3, $obj->SortOrder, 'Auto sort should have run on Versioned stage "Live"');