Fix duplicazione contratto

This commit is contained in:
Matteo 2019-06-27 16:09:41 +02:00 committed by GitHub
parent 1d199113a7
commit ca9a480f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ switch (post('op')) {
$id_record = $new->id;
$righe = $preventivo->getRighe();
$righe = $contratto->getRighe();
foreach ($righe as $riga) {
$new_riga = $riga->replicate();
$new_riga->setParent($new);