-
Bug
-
Resolution: Fixed
-
Minor
-
3.4
-
MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-60718-master -
When some participant is enrolled to a course with more than one methods (for instance first auto-enrolment and after manual), the following error appears when executing 'php admin/tool/analytics/cli/guess_course_start_and_end.php --guessall --update':
Course2 (id = 3):
Current start date is good: Monday, 6 November 2017, 8:36 PM
Can't guess the end date
++ Did you remember to make the first column something unique in your call to get_records? Duplicate value '1509616171' found in column 'timeaccess'. ++
* line 802 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
* line 363 of /analytics/classes/course.php: call to pgsql_native_moodle_database->get_records_sql()
* line 172 of /admin/tool/analytics/cli/guess_course_start_and_end.php: call to core_analytics\course->guess_end()
* line 101 of /admin/tool/analytics/cli/guess_course_start_and_end.php: call to tool_analytics_calculate_course_dates()