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

    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MDL-62358-master
    • Hide

      The automated tests are a sufficient test of this. They verify that the change does not cause any regressions, and the new test verifies that other strings now work.

      Show
      The automated tests are a sufficient test of this. They verify that the change does not cause any regressions, and the new test verifies that other strings now work.

    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

            HuongNV Huong Nguyen
            timhunt Tim Hunt
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Jul/18