Commit f772bcd4 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1631806: Copy page description when institution/group

When a group, institution or site page is copied,
the page description from the template page
should be copied to the new page.


Change-Id: I89dd24457005c2b2d43abfbb65824198d85f8fd1
(cherry picked from commit 2a2e580e)
parent c224115f
......@@ -5467,7 +5467,7 @@ class View {
$artefactcopies = array(); // Correspondence between original artefact ids and id of the copy
$this->set('numrows', $template->get('numrows'));
$this->set('layout', $template->get('layout'));
if ($template->get('owner') == 0
if ($template->get('template') == self::SITE_TEMPLATE
&& $template->get('type') == 'portfolio') {
$this->set('description', '');
Markdown is supported
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