Skip to content

Commit

Permalink
Update DeliverableGenerationService.php
Browse files Browse the repository at this point in the history
Fixed the deliverables generation when recommendation risk is not linked to a global object.
  • Loading branch information
ruslanbaidan authored Sep 18, 2023
1 parent b40bf0a commit 6d63c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/DeliverableGenerationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3048,7 +3048,7 @@ protected function generateRisksPlan()
$global = [];
$toUnset = [];
foreach ($recommendationRisks as $recommendationRisk) {
if ($recommendationRisk->getInstance()->getObject()->getScope() === MonarcObject::SCOPE_GLOBAL) {
if ($recommendationRisk->hasGlobalObjectRelation()) {
$key = $recommendationRisk->getRecommandation()->getUuid()
. ' - ' . $recommendationRisk->getThreat()->getUuid()
. ' - ' . $recommendationRisk->getVulnerability()->getUuid()
Expand Down

0 comments on commit 6d63c91

Please sign in to comment.