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

Merge branch '477-ld-duplicate' of gricad-gitlab.univ-grenoble-alpes.fr:labnbook/labnbook

parents cc32439c 93776756
......@@ -344,7 +344,7 @@ EOL;
$new_rp->id_mission = $new->id_mission;
$new_rp->save();
$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