Skip to content

Commit 6d63c91

Browse files
authored
Update DeliverableGenerationService.php
Fixed the deliverables generation when recommendation risk is not linked to a global object.
1 parent b40bf0a commit 6d63c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/DeliverableGenerationService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3048,7 +3048,7 @@ protected function generateRisksPlan()
30483048
$global = [];
30493049
$toUnset = [];
30503050
foreach ($recommendationRisks as $recommendationRisk) {
3051-
if ($recommendationRisk->getInstance()->getObject()->getScope() === MonarcObject::SCOPE_GLOBAL) {
3051+
if ($recommendationRisk->hasGlobalObjectRelation()) {
30523052
$key = $recommendationRisk->getRecommandation()->getUuid()
30533053
. ' - ' . $recommendationRisk->getThreat()->getUuid()
30543054
. ' - ' . $recommendationRisk->getVulnerability()->getUuid()

0 commit comments

Comments
 (0)