Commit fd9f88a8 authored by Son Nguyen's avatar Son Nguyen Committed by Robert Lyon

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

Change-Id: Id3f8cef503512cb81c6a2391dcc5134b38af7fbc
Signed-off-by: 's avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent 9e9ffd1b
......@@ -237,6 +237,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