Skip to content

Commit

Permalink
[BUGFIX][SUBI-320] fixed bug where FallbackDirective was not being us…
Browse files Browse the repository at this point in the history
…ed properly
  • Loading branch information
dylanmaurits committed Jan 25, 2022
1 parent 403e779 commit da7c251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/ReportRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ public function save(
if (!$existingReport) {
try {
if (!$this->canDirectiveBeWhitelisted($report->getFallbackDirective())) {
$report->setViolatedDirective($report->getFallbackDirective());
$report->setWhitelist(Whitelist::STATUS_NOT_ALLOWED);
}

$report->setViolatedDirective($report->getFallbackDirective());
$report = $this->resource->save($report);
} catch (Exception $exception) {
throw new CouldNotSaveException(__(
Expand Down

0 comments on commit da7c251

Please sign in to comment.