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

Invalid value entered in colour picker displays warning with last value saved shown, rather than the erroneous value.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Open the 'Formal white' theme's settings page
      • Enter a deliberately invalid value for one of the colour pickers (e.g. #1234567)
      • Attempt to save the form
        • Confirm that the form reports an invalid value
        • Confirm that the colour picker in question is highlighted
        • Confirm that the value shown for that colour picker is the value you that you entered
      Show
      Open the 'Formal white' theme's settings page Enter a deliberately invalid value for one of the colour pickers (e.g. #1234567) Attempt to save the form Confirm that the form reports an invalid value Confirm that the colour picker in question is highlighted Confirm that the value shown for that colour picker is the value you that you entered
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:

      Description

      1. Login as an admin.
      2. Navigate to Site administration ► Appearance ► Themes ► Formal white.
      3. In any of the colour pickers on the page enter #0404E61 as the value.
      4. Click save.
      5. You will be given a warning message around the field with the value displayed being the last colour that was saved successfully, rather than the value that caused the warning to display. This is goes against standard Moodle behaviour.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Mar/13