Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -201,6 +201,10 @@ |
202 | 202 | |
203 | 203 | // Add user's group info |
204 | 204 | if ( $fld_groups && !is_null( $row->ug_group2 ) ) { |
| 205 | + if ( !isset( $lastUserData['groups'] ) ) { |
| 206 | + $lastUserData['groups'] = ApiQueryUsers::getAutoGroups( User::newFromName( $lastUser ) ); |
| 207 | + } |
| 208 | + |
205 | 209 | $lastUserData['groups'][] = $row->ug_group2; |
206 | 210 | $result->setIndexedTagName( $lastUserData['groups'], 'g' ); |
207 | 211 | } |
Index: trunk/phase3/includes/api/ApiQueryUsers.php |
— | — | @@ -229,6 +229,7 @@ |
230 | 230 | |
231 | 231 | /** |
232 | 232 | * Gets all the groups that a user is automatically a member of |
| 233 | + * @param $user User |
233 | 234 | * @return array |
234 | 235 | */ |
235 | 236 | public static function getAutoGroups( $user ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -67,6 +67,7 @@ |
68 | 68 | * (bug 26541) Generator-ise ApiQueryRecentChanges |
69 | 69 | * action=parse now correctly returns an error for nonexistent pages |
70 | 70 | * (bug 25767) Add userrights properties to allusers and users query lists |
| 71 | +* (bug 26558) list=allusers auprop=groups does not list groups a user is automatically a member of |
71 | 72 | |
72 | 73 | === Languages updated in 1.18 === |
73 | 74 | |