MDL-40666 enrol|cohort: PARAM_NUMBER -> PARAM_INT
authorDan Poltawski <dan@moodle.com>
Tue, 16 Jul 2013 02:03:38 +0000 (10:03 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 16 Jul 2013 07:03:03 +0000 (15:03 +0800)
commitfb5ce7d3517cb70ec892edc11f7f3f9aaa85b17e
treee0d18b1ad0bfef2af25c105c27f6b3d243f462a4
parent4f60c4af77dcdedf36977588616158900d63d255
MDL-40666 enrol|cohort: PARAM_NUMBER -> PARAM_INT

PARAM_NUMBER is a float, our id's are int's

* Fix core_cohort_get_cohorts to specify correct return type on cohort id
* Fix core_enrol_get_enrolled_users_with_capability to specify correct
  correct return type on user id
* Fix core_cohort_update_cohorts to specify the right parameter type
  (int) on cohort id
* Add tests to verify the bug on core_cohort_update_cohorts param type.
cohort/externallib.php
cohort/tests/externallib_test.php
cohort/upgrade.txt [new file with mode: 0644]
enrol/externallib.php
enrol/upgrade.txt