[+BUGFIX] (Persistence) clone setDefaultQuerySettings for new queries
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Repository.php
index 586f574..541c852 100644 (file)
@@ -352,7 +352,7 @@ class Tx_Extbase_Persistence_Repository implements Tx_Extbase_Persistence_Reposi
                        $query->setOrderings($this->defaultOrderings);
                }
                if ($this->defaultQuerySettings !== NULL) {
-                       $query->setQuerySettings($this->defaultQuerySettings);
+                       $query->setQuerySettings(clone $this->defaultQuerySettings);
                }
                return $query;
        }