public function _doUpdate($inputRecord, $currentRecord) { $result = parent::_doUpdate($inputRecord, $currentRecord); if ($this->getViewObject()->isForceCompeleteProfile()) { Openbiz::getService(OPENBIZ_PREFERENCE_SERVICE)->setPreference('force_complete_profile', 0); } return $result; }