Commit c0f68a99 authored by Son Nguyen's avatar Son Nguyen
Browse files

Update the profile icon when copying a profile info block-bug 1306365




Change-Id: Id3f8cef503512cb81c6a2391dcc5134b38af7fbc
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent c8acf2c6
......@@ -223,6 +223,14 @@ class PluginBlocktypeProfileinfo extends PluginBlocktype {
unset($configdata['email']);
}
}
if (isset($configdata['profileicon'])) {
if ($newicon = get_field('usr', 'profileicon', 'id', $view->get('owner'))) {
$configdata['profileicon'] = $newicon;
}
else {
unset($configdata['profileicon']);
}
}
}
else {
$configdata['artefactids'] = array();
......
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