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

Members view: groups are not sorted as expected in detailed view of a member

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4.11
    • Fix Version/s: 10.5
    • Component/s: Course
    • Labels:
      None

      Description

      When opening the detailed view of a member by clicking his name in members management of a course, the list of groups seems not to be sorted. An alphabetical order would be better.
      This can be done simply by adding an "order by" in the query:

      diff --git a/src/main/java/org/olat/group/manager/BusinessGroupDAO.java b/src/main/java/org/olat/group/manager/BusinessGroupDAO.java
      --- a/src/main/java/org/olat/group/manager/BusinessGroupDAO.java
      +++ b/src/main/java/org/olat/group/manager/BusinessGroupDAO.java
      @@ -794,6 +794,7 @@
       		  .append(" inner join fetch bgi.resource as bgResource ")
       		  .append(" inner join bgi.baseGroup as bGroup ");
       		filterBusinessGroupToSearch(sb, params, false);
      +		sb.append(" order by bgi.name");
       
       		TypedQuery<Object[]> objectsQuery = dbInstance.getCurrentEntityManager()
       				.createQuery(sb.toString(), Object[].class);
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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