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
28c41c60
Commit
28c41c60
authored
Dec 12, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 12, 2006
Browse files
Changed to accept an array of ids in the case of listself.
parent
27090417
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/view/create4.php
View file @
28c41c60
...
...
@@ -94,14 +94,17 @@ function createview4_submit($values) {
insert_record
(
'view_content'
,
$viewcontent
);
}
else
if
(
$blockdata
[
'type'
]
==
'artefact'
)
{
$blockdata
[
'id'
]
=
(
array
)
$blockdata
[
'id'
];
foreach
(
$blockdata
[
'id'
]
as
$id
)
{
$viewartefact
=
new
StdClass
;
$viewartefact
->
view
=
$viewid
;
$viewartefact
->
artefact
=
$
blockdata
[
'id'
]
;
$viewartefact
->
artefact
=
$
id
;
$viewartefact
->
block
=
$block
;
$viewartefact
->
ctime
=
$time
;
$viewartefact
->
format
=
$blockdata
[
'format'
];
insert_record
(
'view_artefact'
,
$viewartefact
);
}
}
else
{
throw
new
OMGWTFException
();
}
...
...
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