QuickTable: strip sort when couting, fixes pgsql

This commit is contained in:
Thomas Gelf 2016-03-01 03:44:09 +01:00
parent 60f9493862
commit 7f0673d18c
1 changed files with 1 additions and 1 deletions

View File

@ -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)