Commit bd5329a7 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

description is lost when copying a view/page



bug #743461

Change-Id: Iefc4fe60acc9491f350c399510f7bdf7402c22ac
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 6b1279f1
......@@ -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