Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-4249

PeekView: don't show deleted files in folder course element

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 14.1.1
    • Fix Version/s: 14.1.2
    • Component/s: Course
    • Labels:
      None

      Description

      Don't show deleted file in the peek view for folder course elements. This is the patch:

      diff --git a/src/main/java/org/olat/course/nodes/bc/BCPeekviewController.java b/src/main/java/org/olat/course/nodes/bc/BCPeekviewController.java
      index 9bf9ea2..3e44df4 100644
      --- a/src/main/java/org/olat/course/nodes/bc/BCPeekviewController.java
      +++ b/src/main/java/org/olat/course/nodes/bc/BCPeekviewController.java
      @@ -125,6 +125,7 @@
       	private void fileMetadata(List<DownloadComponent> links, VFSMetadata metadata, int itemsToDisplay) {
       		List<VFSMetadata> newestData = vfsRepositoryService.getNewest(metadata, itemsToDisplay);
       		for(VFSMetadata newData:newestData) {
      +			if (newData.isDeleted()) continue;
       			String name = "nodeLinkDL_"+ (count++);
       			VFSMetadataMediaResource media = new VFSMetadataMediaResource(newData);
       			media.setDownloadable(forceDownload);
      

        Figma for Jira By 42nd

          Attachments

            Activity

              People

              Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Stéphane Rossé
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: