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

Feedback module has a problem with symbols such as ampersand (&) and quotation mark (")

XMLWordPrintable

    • MOODLE_39_STABLE, MOODLE_401_STABLE, MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-77834-403
    • MDL-77834-404
    • Hide
      1. Log in as admin
      2. Create a course
      3. Add a Feedback activity to course
        • Record user names: User's name will be logged...
        • Allow multiple submissions: Yes
      4. Press Edit questions and add questions of each type:
        • Longer text answer
        • Short text answer
      5. Navigate back to feedback view page
      6. Press Answer the questions
      7. Add the following to both questions:

        Hello "there" & Goodbye
        

      8. Press Submit your answers > Continue
      9. Navigate back to feedback view page
      10. Press Answer the questions
      11. Confirm each answer contains identical content to that previously entered (no double encoding)
      12. Repeat testing steps from MDL-70767
      Show
      Log in as admin Create a course Add a Feedback activity to course Record user names: User's name will be logged... Allow multiple submissions: Yes Press Edit questions and add questions of each type: Longer text answer Short text answer Navigate back to feedback view page Press Answer the questions Add the following to both questions: Hello "there" & Goodbye Press Submit your answers > Continue Navigate back to feedback view page Press Answer the questions Confirm each answer contains identical content to that previously entered (no double encoding) Repeat testing steps from MDL-70767

      Current behaviour:
      Feedback module replaces some symbols such as & and " with their HTML entities in forms of responses.

      More details in the reproduction steps below.

      Desired behaviour:
      Users should not deal with HTML entities if they don't want to. Saving a form without any changes made must not change the data.

      Steps:

      1. Create a not anonymous feedback activity, allow multiple submissions (the problem presents in all kinds of Feedback activity, but this combination of settings shows more interfaces with the problem).
      2. Create questions of 'short text' and 'longer text' types.
      3. (student) Fill in and send the report form.
      4. Open response list.
      5. Open the response in the list. SEE THE PROBLEM
      6. (student) Go to the Feedback and press 'Answer the questions' button again. SEE THE PROBLEM
      7. (student) Don't change anything and press 'Submit your answers'.
      8. Open response list. SEE THE PROBLEM

      A response example:
      This is "longer" feedback & the ampersand
      This is "short" feedback & the ampersand

      Seems like there is a similar issue MDL-62307

        1. Feedback form edit.png
          94 kB
          Андрей Усков
        2. Feedback form.png
          89 kB
          Андрей Усков
        3. Feedback response before response edit.png
          106 kB
          Андрей Усков
        4. Feedback response list after response edit.png
          120 kB
          Андрей Усков
        5. Feedback response list before response edit.png
          113 kB
          Андрей Усков
        6. (1) 11 Passed -- (Main)MDL-70767.png
          48 kB
          Kim Jared Lucas
        7. (2) 12 Passed -- (Main)MDL-70767.png
          32 kB
          Kim Jared Lucas
        8. (2) 9 Passed -- (Main)MDL-70767.png
          53 kB
          Kim Jared Lucas

            pholden Paul Holden
            андрейусков Андрей Усков
            Carlos Escobedo Carlos Escobedo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.