From 8ee35dc9d4b52f6c3883ca7f0ab353f1a359eb7c Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 9 Dec 2013 16:34:36 -0600
Subject: [PATCH] fetch: Fix clobbered user on fetch, round two

Again, fix issue where multiple mails fetched in the same fetch run will set
the user of each of the mails to the user of the first email fetched.

The previous patch neglected to pass the new $cache argument through the
inherited UserForm::getFields() function.
---
 include/class.dynamic_forms.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php
index 9606f0853..4714ac4ba 100644
--- a/include/class.dynamic_forms.php
+++ b/include/class.dynamic_forms.php
@@ -144,8 +144,8 @@ class UserForm extends DynamicForm {
         return $os->filter(array('type'=>'U'));
     }
 
-    function getFields() {
-        $fields = parent::getFields();
+    function getFields($cache=true) {
+        $fields = parent::getFields($cache);
         foreach ($fields as $f) {
             if ($f->get('name') == 'email') {
                 $f->getConfiguration();
-- 
GitLab