Skip to content
Snippets Groups Projects
Commit e47758a8 authored by Jonathan Foucher's avatar Jonathan Foucher
Browse files

Add missing fields to treatment and contractor cloners. Fixes...

Add missing fields to treatment and contractor cloners. Fixes #996
parent 4d0baa32
No related branches found
No related tags found
No related merge requests found
Pipeline #90789 passed
......@@ -39,6 +39,7 @@ class ContractorCloner extends AbstractCloner
$contractor->setName($referent->getName());
$contractor->setReferent($referent->getReferent());
$contractor->setHasDpo($referent->isHasDpo());
$contractor->setContractualClausesVerified($referent->isContractualClausesVerified());
$contractor->setAdoptedSecurityFeatures($referent->isAdoptedSecurityFeatures());
$contractor->setMaintainsTreatmentRegister($referent->isMaintainsTreatmentRegister());
......
......@@ -40,6 +40,12 @@ class TreatmentCloner extends AbstractCloner
$treatment->setName($referent->getName());
$treatment->setGoal($referent->getGoal());
$treatment->setManager($referent->getManager());
$treatment->setDpoMessage($referent->getDpoMessage());
$treatment->setPublic($referent->getPublic());
$treatment->setCoordonneesResponsableTraitement($referent->getCoordonneesResponsableTraitement());
$treatment->setExemptAIPD($referent->getExemptAIPD());
$treatment->setInnovativeUse($referent->isInnovativeUse());
$treatment->setOtherCollectingMethod($referent->getOtherCollectingMethod());
$treatment->setSoftware($referent->getSoftware());
// Do not duplicate tools. Fixes https://gitlab.adullact.net/soluris/madis/-/issues/888
// $treatment->setTools($referent->getTools());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment