diff --git a/plugins/fabrik_form/email/email.php b/plugins/fabrik_form/email/email.php index 07a446b076c..4c51a6e84d2 100644 --- a/plugins/fabrik_form/email/email.php +++ b/plugins/fabrik_form/email/email.php @@ -171,6 +171,7 @@ public function onAfterProcess() $message = $this->_getTextEmail(); } + $this->attachments = array(); //Reset in case of multiple email plugins $this->addAttachments(); $cc = null; @@ -426,7 +427,7 @@ public function onAfterProcess() } } - $this->updateRow(); + $this->updateRow($params); JDEBUG ? $profiler->mark("email: end: onAfterProcess") : null; @@ -843,9 +844,10 @@ protected function _getTextEmail() /** * Update row */ - private function updateRow() + private function updateRow($params) { - $params = $this->getParams(); + //$$$trob: in case of multiple email plugins getParams is fetching the "last" ones for the first email plugin + //$params = $this->getParams(); $updateField = $params->get('email_update_field'); $rowid = $this->data['rowid'];