This issue has been created
There are 2 updates.
 
 
Release Notes Application / cid:jira-generated-image-avatar-b858ea7e-b817-47bf-bb89-b94eb223966f RN-82 Open

All the videos of a change are displayed in the grid layout instead of only the first one

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d1bac6fe-1033-4f4e-8710-e71e046ac46e Vincent Massol created this issue on 30/Aug/26 19:29
 
Summary: All the videos of a change are displayed in the grid layout instead of only the first one
Issue Type: cid:jira-generated-image-avatar-b858ea7e-b817-47bf-bb89-b94eb223966f Bug
Affects Versions: 2.3
Assignee: Unassigned
Components: Application
Created: 30/Aug/26 19:29
Priority: cid:jira-generated-image-static-major-e0b3c96e-13d9-418f-83c2-2b46e0cacde2 Major
Reporter: Vincent Massol
Description:

Problem

In ReleaseNotes.Code.Change.ChangeDisplayerVelocityMacros, the displayScreenshots macro documents that when alwaysDisplayScreenshots is true it must "only display the 1st video if there are more than one". The guard meant to implement that tests $alwaysDisplayScreenshot – singular, missing the trailing "s" – which is never defined anywhere. An undefined reference evaluates to false in Velocity, so the #else branch always runs and every video is displayed.

#if ($alwaysDisplayScreenshot && $videoReferences.size() > 0)
  #set ($computedVideoReferences = [$videoReferences.get(0)])
#else
  #set ($computedVideoReferences = $videoReferences)
#end

The parameter name is spelled correctly in the other four places it appears in the same macro, so this is a plain typo rather than an intentional second flag.

How to reproduce

  • Create a change with two video attachments and no screenshot, listing both in its screenshots field.
  • Render it with a displayer that passes alwaysDisplayScreenshots = true.
  • Expected: one video (the first). Actual: both videos.

Verified on XWiki 18.6.0 with the grid displayer: the rendered card contains two <video> elements whether the parameter is true or false, so the parameter has no effect at all on the number of videos.

Notes

  • Introduced by the fix for RN-67, so present since 2.3.
  • The grid displayer is currently the only caller passing true, which is why the deviation has gone unnoticed.
  • Fixing the typo changes rendering for any change carrying several videos and no screenshot, so it deserves its own issue rather than riding along with an unrelated change.
 
 

2 updates

 
cid:jira-generated-image-avatar-d1bac6fe-1033-4f4e-8710-e71e046ac46e Changes by Vincent Massol on 30/Aug/26 19:32
 
Fix Version: 2.5
Assignee: Vincent Massol