Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing course on the errors page #228

Open
dmitriim opened this issue Oct 24, 2024 · 0 comments
Open

Missing course on the errors page #228

dmitriim opened this issue Oct 24, 2024 · 0 comments

Comments

@dmitriim
Copy link

If errored courses have same full names, then one of them will be missed on the error page. This is because of c.fullname being used as the first column in this SQL https://github.com/learnweb/moodle-tool_lifecycle/blob/master/classes/local/table/process_errors_table.php#L59

It should use c.id

Did you remember to make the first column something unique in your call to get_records? Duplicate value 'Test course: XS' found in column 'course'.
line 987 of /lib/dml/pgsql_native_moodle_database.php: call to debugging()
line 2017 of /lib/tablelib.php: call to pgsql_native_moodle_database->get_records_sql()
line 2039 of /lib/tablelib.php: call to table_sql->query_db()
line 68 of /admin/tool/lifecycle/errors.php: call to table_sql->out()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant