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
c532653d
Commit
c532653d
authored
Apr 29, 2011
by
Francois Marier
Committed by
Gerrit Code Review
Apr 29, 2011
Browse files
Merge "description is lost when copying a view/page"
parents
6575aab6
bd5329a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
c532653d
...
...
@@ -3145,6 +3145,8 @@ class View {
public
function
copy_contents
(
$template
)
{
$this
->
set
(
'numcolumns'
,
$template
->
get
(
'numcolumns'
));
$this
->
set
(
'layout'
,
$template
->
get
(
'layout'
));
$this
->
set
(
'description'
,
$template
->
get
(
'description'
));
$this
->
set
(
'tags'
,
$template
->
get
(
'tags'
));
$blocks
=
get_records_array
(
'block_instance'
,
'view'
,
$template
->
get
(
'id'
));
$numcopied
=
array
(
'blocks'
=>
0
,
'artefacts'
=>
0
);
if
(
$blocks
)
{
...
...
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