diff --git a/turba/lib/Object.php b/turba/lib/Object.php index ada0df812b1..d98dc97f561 100644 --- a/turba/lib/Object.php +++ b/turba/lib/Object.php @@ -194,9 +194,10 @@ public function setValue($attribute, $value) } catch (Turba_Exception $e) {} } - // If we don't know the attribute, and it's an email field, save it - // in case we need to populate an email field on save. - if (!isset($this->driver->map[$attribute]) && $attribute != '__tags') { + // If we don't know the attribute, it's not a private attribute, + // and it's an email field, save it in case we need to populate an email + // field on save. + if (!isset($this->driver->map[$attribute]) && strpos($attribute, '__') === false) { if (isset($attributes[$attribute]) && $attributes[$attribute]['type'] == 'email') { $this->_emailFields[$attribute] = $value;