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

Strict validation not detect cyrillic in required fields.

    XMLWordPrintable

    Details

    • Database:
      MySQL
    • Testing Instructions:
      Hide
      1. Enable strict validation of required fields
      2. Create a form with required text field and without client validation (for example, hack moodleform_mod.php and remove 'client' from line $mform->addRule('introeditor', get_string('required'), 'required', null, 'client');)
      3. Enter spaces, newlines. Try entering several spaces and then newline (TinyMCE treats it specially)
      4. Submit form, make sure validation fails
      5. Enter cyrillic text
      6. Submit form, make sure there are no errors

      Check in Atto and TinyMCE

      Show
      Enable strict validation of required fields Create a form with required text field and without client validation (for example, hack moodleform_mod.php and remove 'client' from line $mform->addRule('introeditor', get_string('required'), 'required', null, 'client'); ) Enter spaces, newlines. Try entering several spaces and then newline (TinyMCE treats it specially) Submit form, make sure validation fails Enter cyrillic text Submit form, make sure there are no errors Check in Atto and TinyMCE
    • Workaround:
      Hide

      Just disable "Strict validation of required fields "

      Show
      Just disable "Strict validation of required fields "
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      wip-MDL-30358-master

      Description

      When Strict validation of required fields is enabled can't use cyrillic in required fields and when try to save says:
      "There are required fields in this form marked " (Have text, but in cyrillic.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              misho Mihail Peltekov
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              John Okely
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14