Index: core/units/helpers/user_helper.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/units/helpers/user_helper.php (revision 15892) +++ core/units/helpers/user_helper.php (revision ) @@ -160,10 +160,15 @@ function loginUserById($user_id, $remember_login_cookie = false) { $object =& $this->getUserObject(); - $this->Application->removeObject($object->getPrefixSpecial()); - $this->Application->StoreVar('user_id', $user_id); $this->Application->SetVar('u.current_id', $user_id); + + if ( !$this->Application->isAdmin ) { + // needed for "profile edit", "registration" forms ON FRONT ONLY + $this->Application->SetVar('u_id', $user_id); + } + + $this->Application->StoreVar('user_id', $user_id); $this->Application->Session->SetField('PortalUserId', $user_id); if ($user_id != USER_ROOT) {