Now, when a category exists, if we are restoring to a different course, set utomatically the publish field to 1. If a question exists in DB (by category, questiontext and qtype) it isn't duplicated. This produce some problems restoring answes, but avoid duplicates.
Now, when a category exists, if we are restoring to a different course,
set utomatically the publish field to 1.
If a question exists in DB (by category, questiontext and qtype) it isn't
duplicated.
This produce some problems restoring answes, but avoid duplicates.

dilawar/moodle