Verified Commit 254783ea authored by David Beniamine's avatar David Beniamine
Browse files

Merge branch '477-ld-duplicate' of

parents cc32439c 93776756
......@@ -344,7 +344,7 @@ EOL;
$new_rp->id_mission = $new->id_mission;
$id_report_part_new = $new_rp->id_report_part;
foreach ($rp->labdocs as $ld) {
foreach ($rp->labdocs()->whereNull('id_report')->get() as $ld) {
// copie des LabDocs
$new_ld = $ld->replicate();
$new_ld->id_report_part = $new_rp->id_report_part;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment