QuickTable: strip sort when couting, fixes pgsql
This commit is contained in:
parent
60f9493862
commit
7f0673d18c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue