This is not a bug, because the course moves from the "in progress" view to the "past" view. When a student completes a course, it becomes a thing of the past.
General developer forum
Course disappears from dashboard after completion
This discussion has been locked so you can no longer reply to it.