-
Bug
-
Resolution: Fixed
-
Critical
-
2.0.3, 2.1, 2.2
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_20_STABLE, MOODLE_21_STABLE
-
MDL-28483-master -
Easy
-
Try adding URL resource into a course (see Testing instructions).
In 2.0+ the field "External URL" is not required. If user does not enter the value there and tries to click the link, an error occurs with the text "A required parameter (id) was missing", which is very confusing.
In 1.9 the field "Location" is required and pre-populated with "http://" by default (which does not result in an error if user forgets to fill it). In this case if user clicks on the link from a course page, nothing happens at all.
IMHO, the link should be required in 2.0+ (and the description field not) and value "http://" should not pass validation in 1.9. But probably there was a good reason why link is no longer required in 2.0+.
Another thing I have noticed is that help for "Display" lists more options than there are in the dropdown.
- caused a regression
-
MDL-30005 revert too strict URL cleaning in mod/url
-
- Closed
-
- has a non-specific relationship to
-
MDL-29765 Review all uses of DB->sql_empty() and take rid of the unnecessary ones
-
- Closed
-
- has been marked as being related by
-
MDL-29619 Resource URL should be properly filtered before generating output
-
- Closed
-
-
MDL-29489 PARAM_URL accepts "http://" as a valid url
-
- Closed
-
- is duplicated by
-
MDL-29734 URL module: URL should be required field
-
- Closed
-