Commit c1e0459a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Delete records from view_visit when deleting views


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 45024405
......@@ -497,6 +497,7 @@ class View {
delete_records('view_access_token', 'view', $this->id);
delete_records('view_autocreate_grouptype', 'view', $this->id);
delete_records('view_tag','view',$this->id);
delete_records('view_visit','view',$this->id);
delete_records('usr_watchlist_view','view',$this->id);
if ($blockinstanceids = get_column('block_instance', 'id', 'view', $this->id)) {
require_once(get_config('docroot') . 'blocktype/lib.php');
......
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