Commit 17d64420 authored by Hugh Davenport's avatar Hugh Davenport Committed by Gerrit Code Review
Browse files

Merge "Release locked artefacts when releasing a view from moodle"

parents 506c004a c35a687f
...@@ -762,6 +762,7 @@ function release_submitted_view($viewid, $assessmentdata, $teacherusername) { ...@@ -762,6 +762,7 @@ function release_submitted_view($viewid, $assessmentdata, $teacherusername) {
$view->set('submittedhost', null); $view->set('submittedhost', null);
$view->set('submittedtime', null); $view->set('submittedtime', null);
$view->commit(); $view->commit();
ArtefactType::update_locked($view->get('owner'));
db_commit(); db_commit();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment