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

Increase length on answer field when editing calculated questiontypes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.1.3, 2.2
    • None
    • Questions
    • MOODLE_21_STABLE, MOODLE_22_STABLE

    Description

      The actual answer input element is inherited from the numerical where
      the length is limited to 10 i.e. $repeated[1]->setSize(10);

      The proposal is to set back this length to the standard 80

      class qtype_calculated_edit_form extends qtype_numerical_edit_form {
      public function get_per_answer_fields($mform, $label, $gradeoptions,
      &$repeatedoptions, &$answersoption) {
      $repeated = parent::get_per_answer_fields($mform, $label, $gradeoptions,
      $repeatedoptions, $answersoption);
      $repeated[1]->setSize(80);

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              ppichet Pierre Pichet
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: