-
Bug
-
Resolution: Fixed
-
Critical
-
2.0.1, 2.1.1, 2.2
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_22_STABLE
-
wip-mdl-25937-disableif
-
While peer-reviewing a patch I stumbled upon a bug with the file picker / mforms library.
I was on a form where I was required to upload a file, however I found I could submit the form and proceed without the file.
Originally I thought someone had forgot to add a required rule, however upon inspecting the form I see that it does indeed have a required rule on the file picker element.
To reproduce:
- Log in as an admin
- Enter a course and click grades in the settings block for that course.
- In the settings block again under Grade administration expand Import and click CSV file
- On the form you see immediately click Upload grades
Outcome: You will be taken to the next form in the series, however because the file picker has a required rule I would expect to get an error and see the original form again.
I tested this by adding a validate method and manually validating the field, doing this worked fine, however it isn't a fix its a work around.
Yell out if there is anything more I can help with.
Cheers
Sam
- caused a regression
-
MDL-29512 File manager - "download...rename...move...delete... button" fails or has destructive results
-
- Closed
-
-
MDL-29491 Unable to create local users, or edit user profile
-
- Closed
-
- has a non-specific relationship to
-
MDL-29638 Backport MDL-25937 to stable branches
-
- Closed
-
- has been marked as being related by
-
MDL-25887 Grade import produces a lot of php notices
-
- Closed
-
- is duplicated by
-
MDL-28950 grade import allows you to continue without selecting a file to import
-
- Closed
-
- will help resolve
-
MDL-30172 Back-port fix for MDL-25937 to 2.1 and 2.0
-
- Closed
-