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
f5c4caf4
Commit
f5c4caf4
authored
Jul 06, 2010
by
Richard Mansfield
Browse files
Lock files attached to locked blogposts
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
5778ca49
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/lib.php
View file @
f5c4caf4
...
...
@@ -1098,7 +1098,13 @@ abstract class ArtefactType {
array
(
$userid
,
$userid
)
);
if
(
$submitted
)
{
$lock
=
artefact_get_descendants
(
$submitted
);
$descendants
=
get_column_sql
(
'
SELECT artefact
FROM {artefact_parent_cache}
WHERE parent IN ('
.
join
(
','
,
$submitted
)
.
')'
,
array
()
);
$lock
=
$descendants
?
array_merge
(
$submitted
,
$descendants
)
:
$submitted
;
}
db_begin
();
if
(
!
empty
(
$lock
))
{
...
...
Write
Preview
Markdown
is supported
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