From ee7106d32f0b0c7d392a80af308dc217a6a86554 Mon Sep 17 00:00:00 2001
From: Ere Maijala <ere.maijala@helsinki.fi>
Date: Mon, 30 Nov 2015 15:00:05 -0500
Subject: [PATCH] Reset helpers array of Results object when cloned to avoid
 using old params in e.g. UrlQueryHelper.

---
 module/VuFind/src/VuFind/Search/Base/Results.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/module/VuFind/src/VuFind/Search/Base/Results.php b/module/VuFind/src/VuFind/Search/Base/Results.php
index 8f32ddd4da7..0b67d09cc5f 100644
--- a/module/VuFind/src/VuFind/Search/Base/Results.php
+++ b/module/VuFind/src/VuFind/Search/Base/Results.php
@@ -162,6 +162,7 @@ abstract class Results implements ServiceLocatorAwareInterface
         if (is_object($this->params)) {
             $this->params = clone($this->params);
         }
+        $this->helpers = [];
     }
 
     /**
-- 
GitLab