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

strings reversed in request_form.php, Moodle 1.8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1, 1.9
    • Component/s: Course
    • Labels:
      None
    • Environment:
      all
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      A couple of strings have been reversed in request_form.php. Also I have lengthened the shortname field.

      Currently reads:
      $mform->addElement('text', 'fullname', get_string('fullname'), 'maxlength="254" size="50"');
      $mform->addRule('fullname', get_string('missingshortname'), 'required', null, 'client');
      $mform->setType('fullname', PARAM_TEXT);

      $mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="25" size="25"');
      $mform->addRule('shortname', get_string('missingfullname'), 'required', null, 'client');
      $mform->setType('shortname', PARAM_TEXT);

      Should read:
      $mform->addElement('text', 'fullname', get_string('fullname'), 'maxlength="254" size="50"');
      $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
      $mform->setType('fullname', PARAM_TEXT);

      $mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="25" size="25"');
      $mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
      $mform->setType('shortname', PARAM_TEXT);

        Attachments

          Activity

            People

            • Assignee:
              dougiamas Martin Dougiamas
              Reporter:
              awyatt A. T. Wyatt
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jun/07