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

Highscore podium is not displayed if "anonymous" is configured

    XMLWordPrintable

    Details

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

      Description

      The highscore podium is not displayed if it is configured as anonymous which means that names of the users are not displayed. It only appears if the logged in user is the first.

      The cause is that the test in the velocity template #if ($first) returns false if first is null or an empty string. This patch fixes that:

       

      diff --git a/src/main/java/org/olat/course/highscore/ui/_content/highscore.html b/src/main/java/org/olat/course/highscore/ui/_content/highscore.html
      index 3ceacc2..c45c69c 100644
      --- a/src/main/java/org/olat/course/highscore/ui/_content/highscore.html
      +++ b/src/main/java/org/olat/course/highscore/ui/_content/highscore.html
      @@ -22,7 +22,7 @@
       					#end
       				</div>
       			#end
      -			#if ($first)
      +			#if ($first || $first == '')
       				<div class="col-sm-6 o_podium">
       					<div class="o_rank o_first">
       						#if ($r.available("portrait1")) 
      

        Figma for Jira By 42nd

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: