Commit c532653d authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "description is lost when copying a view/page"

parents 6575aab6 bd5329a7
......@@ -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) {
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