fix(ZP-647): BackendCombined: SendMail source->folderid

We need to remove the backend prefix before calling the final
method.
Signed-off-by: 's avatarFrancisco Miguel Biete &lt;fbiete@gmail.com&gt; <fmbiete@gmail.com>
parent 119acfdc
......@@ -274,6 +274,10 @@ class BackendCombined extends Backend {
*/
public function SendMail($sm) {
ZLog::Write(LOGLEVEL_DEBUG, "Combined->SendMail()");
// Convert source folderid
if (isset($sm->source->folderid)) {
$sm->source->folderid = $this->GetBackendFolder($sm->source->folderid);
}
foreach ($this->backends as $i => $b){
if($this->backends[$i]->SendMail($sm) == true){
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment