Last modified: 2014-11-08 01:57:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68463, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66463 - UserMerge::movePages makeList using duplicate array keys
UserMerge::movePages makeList using duplicate array keys
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
UserMerge (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
gci2014
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-11 00:08 UTC by Kunal Mehta (Legoktm)
Modified: 2014-11-08 01:57 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2014-06-11 00:08:48 UTC
$dbr->makeList( array(
					'page_title' => $dbr->buildLike( $oldusername->getDBkey() . '/', $dbr->anyString() ),
					'page_title' => $oldusername->getDBkey()
					),
					LIST_OR
				)


Can't use page_title as an array key twice.
Comment 1 Kunal Mehta (Legoktm) 2014-06-11 00:09:14 UTC
Cleaner code paste:

$dbr->makeList( array(
	'page_title' => $dbr->buildLike( $oldusername->getDBkey() . '/', $dbr->anyString() ),
	'page_title' => $oldusername->getDBkey()
	),
	LIST_OR
)
Comment 2 Kunal Mehta (Legoktm) 2014-06-12 04:38:27 UTC
We probably should do what Renameuser does: https://github.com/wikimedia/mediawiki-extensions-Renameuser/blob/master/specials/SpecialRenameuser.php#L305
Comment 3 T. Gries 2014-06-12 07:16:23 UTC
@Legoktm: thx for reporting.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links