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

error when duplicating last topic/section #40

Closed
whymiss opened this issue Jan 27, 2018 · 1 comment
Closed

error when duplicating last topic/section #40

whymiss opened this issue Jan 27, 2018 · 1 comment
Assignees
Labels

Comments

@whymiss
Copy link

whymiss commented Jan 27, 2018

In San Juan we are getting errors when duplicating the last section/topic. Its fine for all other sections but if there is on last section it errors as follows in Moodle 3.3.4+
Debug info: SELECT * FROM {course} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
Stack trace:
• line 1533 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
• line 1509 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
• line 588 of /lib/datalib.php: call to moodle_database->get_record()
• line 443 of /lib/modinfolib.php: call to get_course()
• line 412 of /lib/modinfolib.php: call to course_modinfo->__construct()
• line 2095 of /lib/modinfolib.php: call to course_modinfo::instance()
• line 896 of /course/lib.php: call to get_fast_modinfo()
• line 939 of /course/lib.php: call to course_create_sections_if_missing()
• line 1882 of /course/lib.php: call to course_add_cm_to_section()
• line 132 of /course/format/onetopic/duplicate.php: call to moveto_module()
Regards,
Yvonne

@davidherney
Copy link
Owner

Hi @whymiss ...
Thanks by the issue report. I fix it in the last release (#42).

Please, test this and comment in order to close the issue.

Saludos

@davidherney davidherney added the bug label Feb 8, 2018
@davidherney davidherney self-assigned this Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants