-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
2.2.2
-
None
-
MOODLE_22_STABLE
Description of the issue
---------------------------------------------------------------------------------
Validation of the 'name' and 'url' fields is not case sensitive, causing activity creation to fail (because the AC server does not allow for duplicate name/url and its check is case insensitive).
This affects the 2.0 stable branch, but not the 1.9 stable branch.
Steps to reproduce
---------------------------------------------------------------------------------
1. Create a new AC activity e.g.
Meeting name: "test field case sensitivity"
Meeting URL: "testfieldcase"
==> Activity creation successful
2. Create a new AC activity and use the same name as #1 but change capitalisation e.g.
Meeting name: "Test field case sensitivity"
Meeting URL: "" (leave blank)
==> Activity creation fails with error message "Incorrect function"
3. Create a new AC activity and use the same URL as #1 but change capitalisation e.g.
Meeting name: "test field case sensitivity - url check"
Meeting URL: "Testfieldcase"
==> Activity creation fails with error message "Incorrect function"
Expected Behaviour
---------------------------------------------------------------------------------
The activity creation form should throw a validation error, as it does if you try and create an activity with exactly the same name or url as an existing one.
Patch and github repo
---------------------------------------------------------------------------------
Patch and links to be provided in comments section once I get a tracker number for this issue