Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70433

In gradebook titles, ampersand '&' is being displayed as &

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-70433-311
    • MDL-70433-master
    • Easy
    • Hide
      1. Create a course, name it "LTI Course & ' " ¢ £ © € ¥ ® < >" in the full name, enrol some users.
      2. Create a gradebook category with the name with special characters 'Category & ' " ¢ £ © € ¥ ® < >'.
      3. Create a quiz with the name with special characters 'Quiz & ' " ¢ £ © € ¥ ® < >'.

      Gradebook setup page

      1. Go to gradebook setup
      2. Verify the course name when hovering over the left hand side border does not double escape the ampersand.
      3. Verify the hovered titles do not double escape the ampersand.
      4. Verify the right hand side checkbox label does not double escape the ampersand.
      5. Tick the checkbox to the right of the Quiz & ' " ¢ £ © € ¥ ® < > entry.
      6. Verify in the 'Move selected items to' pulldown menu the category does not double escape the ampersand.

      View Gradebook page

      1. Login as en enrolled user to that course.
      2. In the navigation drawer, choose 'Grades'.
      3. Verify the hovered titles do not double escape the ampersand.

      Single view page

      1. Go to gradebook and choose single view.
      2. Choose a user.
      3. Verify the hovered titles do not double escape the ampersand.

      User report page

      1. Go to gradebook and choose user report.
      2. Verify the hovered titles do not double escape the ampersand.
      Show
      Create a course, name it "LTI Course & ' " ¢ £ © € ¥ ® < >" in the full name, enrol some users. Create a gradebook category with the name with special characters 'Category & ' " ¢ £ © € ¥ ® < >'. Create a quiz with the name with special characters 'Quiz & ' " ¢ £ © € ¥ ® < >'. Gradebook setup page Go to gradebook setup Verify the course name when hovering over the left hand side border does not double escape the ampersand. Verify the hovered titles do not double escape the ampersand. Verify the right hand side checkbox label does not double escape the ampersand. Tick the checkbox to the right of the Quiz & ' " ¢ £ © € ¥ ® < > entry. Verify in the 'Move selected items to' pulldown menu the category does not double escape the ampersand. View Gradebook page Login as en enrolled user to that course. In the navigation drawer, choose 'Grades'. Verify the hovered titles do not double escape the ampersand. Single view page Go to gradebook and choose single view. Choose a user. Verify the hovered titles do not double escape the ampersand. User report page Go to gradebook and choose user report. Verify the hovered titles do not double escape the ampersand.

    Description

      When creating an activity or gradebook category with the ampersand character in the name, the character is being seen as "&" when hovering over the activity link or text. This has been replicated on https://sandbox.moodledemo.net/

       

      Steps to Replicate:

      1. Create an activity that has the ampersand character in the name or a gradebook category with it,
      2. Open the course gradebook,
      3. Hover over the assignment with the ampersand.

      NOTE: this character displays as "&" without the quotation marks

       

      Also noted this page is not allowing me to show what text is being displayed, as the page is changing it to the ampersand character. You will need to check the attached image to see what it is doing.

      Attachments

        Issue Links

          Activity

            People

              lucaboesch Luca Bösch
              pvella paul vella
              Sujith Haridasan Sujith Haridasan
              Jake Dallimore Jake Dallimore
              Gladys Basiana Gladys Basiana
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Sep/21

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours, 25 minutes
                  6h 25m