Commit ed89be5f authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fixed bug #419

parent 5b79735a
......@@ -372,7 +372,9 @@ class ArtefactTypeCachedProfileField extends ArtefactTypeProfileField {
parent::commit();
$field = $this->get_artefact_type();
set_field('usr', $field, $this->title, 'id', $this->owner);
$USER->set($field, $this->title);
if ($this->owner == $USER->get('id')) {
$USER->set($field, $this->title);
}
}
public function delete() {
......
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