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:
parent
0820cd3189
commit
2690f94d4d
@ -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]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user