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

text string hardcoded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3, 2.0
    • Fix Version/s: 1.9.4
    • Component/s: Accessibility
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In the multianswer edit form, when decoding and verifying the question, there is a string "subquestiontext" hardcoded. Consequently this text is unaffected by the language choice.

      This is the file:
      question/type/multianswer/edit_multianswer_form.php

      This is the line (55):
      $mform->addElement('static', 'sub_'.$sub."_".'questiontext', "subquestiontext",array('cols'=>60, 'rows'=>3));

      It should be:
      $mform->addElement('static', 'sub_'.$sub."_".'questiontext', get_string('subquestiontext','qtype_multianswer'),array('cols'=>60, 'rows'=>3));

      Also the string 'subquestiontext' is missing from the language file and should be added.

        Attachments

          Activity

            People

            Assignee:
            ppichet Pierre Pichet
            Reporter:
            melm M Mustonen
            Tester:
            Rossiani Wijaya
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Jan/09