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

Dialog: table sorting does not work correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4.5
    • Fix Version/s: 10.4.6
    • Component/s: None
    • Labels:
      None

      Description

      The sorting of the overview table in dialog course element does not work correctly. If sorting is changed from date/descending to filename, the link is correct, but the delivered file is not the expected one.

      This patch solves that:

      diff --git a/src/main/java/org/olat/modules/dialog/DialogElementsController.java b/src/main/java/org/olat/modules/dialog/DialogElementsController.java
      --- a/src/main/java/org/olat/modules/dialog/DialogElementsController.java
      +++ b/src/main/java/org/olat/modules/dialog/DialogElementsController.java
      @@ -222,7 +222,7 @@
       			TableEvent te = (TableEvent) event;
       			String command = te.getActionId();
       			int row = te.getRowId();
      -			entry = tableModel.getEntryAt(row);
      +			entry = tableModel.getEntryAt(tableCtr.getSortedRow(row));
       			if (command.equals(ACTION_START_FORUM)) {
       				selectedElement = dialogElmsMgr.findDialogElement(coursePropMgr, courseNode, entry.getForumKey());
       				if(selectedElement == null){
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m