Skip to content

Commit 618a178

Browse files
Hackwarphproberto
authored andcommitted
[imp] JModelLegacy: Don't try to use "fast" count method for queries with union. Fixes #5108
1 parent 1466854 commit 618a178

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/legacy/model/legacy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ protected function _getListCount($query)
321321
if ($query instanceof JDatabaseQuery
322322
&& $query->type == 'select'
323323
&& $query->group === null
324+
&& $query->union === null
325+
&& $query->unionAll === null
324326
&& $query->having === null)
325327
{
326328
$query = clone $query;

0 commit comments

Comments
 (0)