Commit 013da588 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Make sure the session gets the value of the profile field when one is

updated.
parent beee5378
......@@ -344,9 +344,11 @@ class ArtefactTypeProfileField extends ArtefactTypeProfile {
class ArtefactTypeCachedProfileField extends ArtefactTypeProfileField {
public function commit() {
global $USER;
parent::commit();
$field = $this->get_artefact_type();
set_field('usr', $field, $this->title, 'id', $this->owner);
$USER->set($field, $this->title);
}
public function delete() {
......
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