Create a course containing an External Tool assignment.
Notice the gradebook has only one External Tool assignment
Backup the course, using all defaults.
Restore the course to a new course, taking defaults.
Inspect the gradebook of the newly copied course.
Verify: There should be only a single copy of the external tool activity.

Description

When a course contains an External Tool assignment. Once that course is backed up and restored to a new course, then newly copied course contains a duplicate of that assignment in the gradebook. The duplicate cannot be removed via the UI.

Steps to replicate:

Create a course containing an External Tool assignment.

Notice the gradebook has only one External Tool assignment

Backup the course, using all defaults.

Restore the course to a new course, taking defaults.

Inspect the gradebook of the newly copied course.

Expected result: There should be only a single copy of the external tool activity.

Michael de Raadt
added a comment - 02/Nov/12 11:07 AM Thanks for reporting that.
I assume this is happening with imports also.
Feel free to help us work on this issue. If you are able to provide a patch or links to your Git repository branch, please add a patch label so we will spot it.

Chris Follin
added a comment - 09/Nov/12 6:35 AM We're also finding that because the activity is duplicated in the restored course, trying to edit the activity results in an error message that more than one record was found by fetch().