1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-26 15:54:17 +01:00

Fix selezione stampe per email

This commit is contained in:
Thomas Zilio 2020-03-31 20:31:03 +02:00
parent 0820cd3189
commit 2690f94d4d

View File

@ -65,11 +65,7 @@ class Mail extends Model
public function resetPrints() public function resetPrints()
{ {
$prints = $this->prints; $this->prints()->detach();
foreach ($prints as $print) {
$this->prints()->detach($print->id, ['id_email' => $this->id]);
}
} }
/** /**