Commit 4de342a4 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Generate watchlist activity when modifying artefacts and views

parent bf14f50d
......@@ -343,6 +343,8 @@ abstract class ArtefactType {
else {
update_record('artefact', $fordb, 'id');
}
activity_occurred('watchlist', (object) array('artefact' => $this->id,
'subject' => get_string('artefactmodified')));
$this->dirty = false;
$this->deleted = false;
}
......
......@@ -147,6 +147,10 @@ if (param_boolean('submit')) {
}
db_commit();
activity_occurred('watchlist', (object) array('view' => $view_id,
'subject' => get_string('viewmodified')));
$SESSION->add_ok_msg(get_string('viewinformationsaved', 'view'));
redirect(get_config('wwwroot') . 'view/');
......
Markdown is supported
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