Skip to content

Commit 5ea3d09

Browse files
authored
Merge pull request #7118 from christianbeeznest/ofaj-23108
Exercise: Show only latest audio feedback player - refs BT#23108
2 parents 956e2a5 + cd79d4f commit 5ea3d09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/main/inc/lib/exercise.lib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5606,12 +5606,12 @@ public static function getOralFeedbackAudio(int $attemptId, int $questionId): st
56065606
return '';
56075607
}
56085608

5609-
$html = '';
5610-
56115609
$assetRepo = Container::getAssetRepository();
5610+
$html = '';
56125611

5612+
// Keep only the latest audio feedback to avoid duplicated players
56135613
foreach ($qAttempt->getAttemptFeedbacks() as $attemptFeedback) {
5614-
$html .= Display::tag(
5614+
$html = Display::tag(
56155615
'audio',
56165616
'',
56175617
[

0 commit comments

Comments
 (0)