Index: branches/5.3.x/core/install/upgrades.sql =================================================================== diff -u -N -r15999 -r16045 --- branches/5.3.x/core/install/upgrades.sql (.../upgrades.sql) (revision 15999) +++ branches/5.3.x/core/install/upgrades.sql (.../upgrades.sql) (revision 16045) @@ -2993,6 +2993,7 @@ ALTER TABLE CategoryItems ADD Id int(11) NOT NULL auto_increment FIRST, ADD PRIMARY KEY (Id); ALTER TABLE UserGroupRelations DROP PRIMARY KEY; ALTER TABLE UserGroupRelations ADD Id int(11) NOT NULL auto_increment FIRST, ADD PRIMARY KEY (Id), ADD UNIQUE KEY UserGroup (PortalUserId, GroupId); +DELETE FROM UserPersistentSessionData WHERE VariableName IN ('u-ug[Default]columns_.', 'g-ug[Default]columns_.'); ALTER TABLE SpamControl ADD Id int(11) NOT NULL auto_increment FIRST, ADD PRIMARY KEY (Id); INSERT INTO SystemSettings VALUES(DEFAULT, 'SSLDomain', '', 'In-Portal', 'in-portal:configure_advanced', 'la_section_SettingsSSL', 'la_config_SSLDomain', 'text', '', '', 30.01, 0, 1, NULL); Index: branches/5.3.x/core/units/user_groups/user_groups_eh.php =================================================================== diff -u -N -r15986 -r16045 --- branches/5.3.x/core/units/user_groups/user_groups_eh.php (.../user_groups_eh.php) (revision 15986) +++ branches/5.3.x/core/units/user_groups/user_groups_eh.php (.../user_groups_eh.php) (revision 16045) @@ -1,6 +1,6 @@ StoreSelectedIDs($event); if ($ids) { + /** @var UsersItem $user */ $user = $this->Application->recallObject('u'); - /* @var $user kDBItem */ - $user->SetDBField('PrimaryGroupId', array_shift($ids)); + $sql = 'SELECT GroupId + FROM ' . $this->Application->GetTempName(TABLE_PREFIX . 'UserGroupRelations', 'prefix:u') . ' + WHERE Id = ' . array_shift($ids); + $group_id = $this->Conn->GetOne($sql); + + $user->SetDBField('PrimaryGroupId', $group_id); $user->Update(); } @@ -159,4 +164,4 @@ } } } - } \ No newline at end of file + }