Skip to content

Commit

Permalink
Added the mssing properties set on the analysis duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Sep 23, 2024
1 parent 9baab63 commit 17b2359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Entity/Anr.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public static function constructFromObjectAndData(AnrSuperClass $sourceAnr, arra
->setLanguageCode($sourceAnr->getLanguageCode())
->setIsVisibleOnDashboard((int)$sourceAnr->isVisibleOnDashboard())
->setIsStatsCollected((int)$sourceAnr->isStatsCollected())
->setModelId($sourceAnr->getModelId());
->setModelId($sourceAnr->getModelId())
->setCacheModelAreScalesUpdatable($sourceAnr->getCacheModelAreScalesUpdatable())
->setCacheModelShowRolfBrut($sourceAnr->getCacheModelShowRolfBrut());
} elseif ($sourceAnr instanceof AnrCore) {
/* Creation of an analysis based on a model. */
$languageIndex = (int)($data['language'] ?? 1);
Expand Down

0 comments on commit 17b2359

Please sign in to comment.