Page MenuHomePhabricator

User groups returned twice
Closed, ResolvedPublic


I have a very simple test case:

		$user->setEmail( $email );
		$user->setPassword( $password );
		$status = $user->addToDatabase();

		if ( !$status->isOK() ) {
			throw new MWException( $status->getWikiText() );

		// Need to have an id first
		$user->addGroup( 'translate-sandboxed' );
		var_dump( $user->getGroups() ); die();

This prints:
array(2) {

string(19) "translate-sandboxed"
string(19) "translate-sandboxed"


It should return it only once.

Version: 1.21.x
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:39 AM
bzimport set Reference to bz46844.

The patch is broken. Does anyone have an idea why I sometimes get dupes but not always?