Skip to content

Commit

Permalink
Merge branch 'release-13.8.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 31, 2024
2 parents 25beec5 + 968c4cd commit a2fafa0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions models/Import/Service/ResultImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ function () use ($resultStorage, $input, $testUri, $deliveryExecutionUri, $testS
$testScoreVariables['scoreTotalVariableId'],
$deliveryExecutionUri,
$testUri,
$totalScoreCalculatedByItemOutcomes
$totalScoreCalculatedByItemOutcomes,
$input->hasOutcomes()
);
}
);
Expand All @@ -93,9 +94,12 @@ private function updateTestVariables(
int $scoreTotalVariableId,
string $deliveryExecutionUri,
string $testUri,
float $updatedScoreTotal
float $updatedScoreTotal,
bool $hasOutcomes
): void {
$scoreTotalVariable->setEpoch(microtime());
if ($hasOutcomes) {
$scoreTotalVariable->setEpoch(microtime());
}
$scoreTotalVariable->setValue($updatedScoreTotal);

$resultStorage->replaceTestVariables(
Expand Down

0 comments on commit a2fafa0

Please sign in to comment.