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

WebService mod_quiz_get_attempt_review doesn't apply filter "Activity names auto-linking" in ddwtos answers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • Questions
    • MOODLE_405_STABLE

      When doing MOBILE-4587 for the app I noticed that, when answering a quiz with ddwtos question in the app, the "Activity names auto-linking" filter was applied to the draggable content. However, when reviewing the attempt in the app, the filter isn't applied. This works fine in Moodle LMS.

      Maybe there are more filters affected. MathJax and glossary auto-link seemed to work fine, I didn't try other filters.

      How to reproduce:

      1. In a Moodle site as admin, go to "Site administration > Plugins > Manage filters".
      2. Enable "Activity names auto-linking" to be applied in "Content and headings".
      3. Create an activity (e.g. a page).
      4. Create a quiz.
      5. Add a question of type "Drag and drop into text" (ddwtos). In one of the answers, enter the name of the activity created in step 3.
      6. As a student, start a new attempt.
      7. Call the WebService mod_quiz_get_attempt_data for the student and the attempt. In the question html, check that you receive a link to the activity created in step 3 (<a>).
      8. Finish the attempt.
      9. Call mod_quiz_get_attempt_review for the student and the attempt. Check that now you don't receive the link, only plain text. 

      Example of HTML returned during the attempt:

      <span class="draghome user-select-none choice10 group1"><a class="autolink" title="Test lesson" href="http://SITEURL/mod/lesson/view.php?id=360">Test lesson</a>

      Meanwhile, when reviewing:

      <span class="draghome user-select-none choice10 group1">Test lesson</span> 

            jleyva Juan Leyva
            dpalou Dani Palou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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