Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c1e0459a
Commit
c1e0459a
authored
Feb 05, 2010
by
Richard Mansfield
Browse files
Delete records from view_visit when deleting views
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
45024405
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
c1e0459a
...
...
@@ -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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment