From 7f0673d18cebd33728b5b8c08898fb9707ef55cf Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 1 Mar 2016 03:44:09 +0100 Subject: [PATCH] QuickTable: strip sort when couting, fixes pgsql --- library/Director/Web/Table/QuickTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Web/Table/QuickTable.php b/library/Director/Web/Table/QuickTable.php index cc8fe1fa..546d3d37 100644 --- a/library/Director/Web/Table/QuickTable.php +++ b/library/Director/Web/Table/QuickTable.php @@ -164,7 +164,7 @@ abstract class QuickTable implements Paginatable { $db = $this->connection()->getConnection(); - return $db->fetchOne($this->getBaseQuery()->columns(array('COUNT(*)'))); + return $db->fetchOne($this->getBaseQuery()->reset('order')->columns(array('COUNT(*)'))); } public function limit($count = null, $offset = null)