I was taking a look at the assignment upgrade tool and I noticed in the script that it is forcing any submission statuses to a constant:
foreach ($oldsubmissions as $oldsubmission) {
$submission = new stdClass();
$submission->assignment = $newassignment->get_instance()->id;
$submission->userid = $oldsubmission->userid;
$submission->timecreated = $oldsubmission->timecreated;
$submission->timemodified = $oldsubmission->timemodified;
$submission->status = ASSIGN_SUBMISSION_STATUS_SUBMITTED; <-- RIGHT HERE
Is there a reason for this? Anything that was previously a draft are now being forced to 'submitted'
Is it a bad idea for me to put an override in to make drafts to the new status of 'new' ?
Also in the old mdl_assignment_submissions, what were the data1, and data2 fields used for? In our current implementation the status was being stored in data2, is this normal?
Thanks