Fix selezione stampe per email

This commit is contained in:
Thomas Zilio 2020-03-31 20:31:03 +02:00
parent 0820cd3189
commit 2690f94d4d
1 changed files with 1 additions and 5 deletions

View File

@ -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();
}
/**