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

Strict validation not detect cyrillic in required fields.

XMLWordPrintable

    • MySQL
    • MOODLE_21_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • wip-MDL-30358-master
    • Hide

      Just disable "Strict validation of required fields "

      Show
      Just disable "Strict validation of required fields "
    • 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

      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.)

            marina Marina Glancy
            misho Mihail Peltekov
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            John Okely John Okely
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.