From 679570ae5d30fa07447b12e218e26daada96e01c Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Thu, 7 Jan 2016 11:58:57 +0000 Subject: [PATCH] orm: Determine if window is shared --- include/class.orm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.orm.php b/include/class.orm.php index 1638d8b97..f816265e3 100644 --- a/include/class.orm.php +++ b/include/class.orm.php @@ -1029,7 +1029,7 @@ class QuerySet implements IteratorAggregate, ArrayAccess, Serializable, Countabl } function isWindowed() { - return $this->limit || $this->offset; + return $this->limit || $this->offset || (count($this->values) + count($this->annotations) + @count($this->extra['select'])) > 1; } function select_related() { -- GitLab