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

Question rendering API does not support all 'question numbers' that might be needed

    XMLWordPrintable

    Details

      Description

      For some reason, core_question_renderer::number only allows actual numbers, or the special case 'i'.

      However, we had a case where we wanted to show "Question 1 of 10". There is no reason to prevent people using the question API from passing a string like '1 of 10' as $number.

        Attachments

          Activity

            People

            Assignee:
            HuongNV Huong Nguyen
            Reporter:
            timhunt Tim Hunt
            Peer reviewer:
            Tim Hunt
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jul/18