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

Text custom field doesn't display error message to user when HTML entered.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5, 5.0
    • Forms Library
    • MOODLE_405_STABLE, MOODLE_500_STABLE

      When a user inadvertently enters HTML into a 'Short text' custom field, the HTML will be stripped and saved with no error notification for the user (same here for the title in a course name field). For example:

      Entered:

      Score <60% some more text

      Saved result:

      Score

      Before saving, the data should be validated for HTML existence and if found, display a suitable error message to the user.

      We would need to show a validation error message instead of just removing the unwanted text.

            Unassigned Unassigned
            x-iy David Adamson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 18 minutes
                18m

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