diff --git a/modules/emails/src/Mail.php b/modules/emails/src/Mail.php index fe5bb7e3d..83f0ce9bc 100755 --- a/modules/emails/src/Mail.php +++ b/modules/emails/src/Mail.php @@ -65,11 +65,7 @@ class Mail extends Model public function resetPrints() { - $prints = $this->prints; - - foreach ($prints as $print) { - $this->prints()->detach($print->id, ['id_email' => $this->id]); - } + $this->prints()->detach(); } /**