Thread:Extension talk:User Merge and Delete/Merge/delete triggers mistaken attempt to merge two ipblocks by block id instead of user/reply

I found the item in UserMerge_body.php that is the source of this bug: line 227 inserts ipb_id into the array of places where userid may be found in the database, even though ipb_id is not a user id but a primary key for its table. It should be changed to ipb_user. The original code, in context: $idUpdateFields = array( array('archive','ar_user'),  array('revision','rev_user'),  array('filearchive','fa_user'),  array('image','img_user'),  array('oldimage','oi_user'),  array('recentchanges','rc_user'),  array('logging','log_user'),  array('ipblocks', 'ipb_id'),  array('ipblocks', 'ipb_by'),  array('watchlist', 'wl_user'), );

What the code should be:

$idUpdateFields = array( array('archive','ar_user'),  array('revision','rev_user'),  array('filearchive','fa_user'),  array('image','img_user'),  array('oldimage','oi_user'),  array('recentchanges','rc_user'),  array('logging','log_user'),  array('ipblocks', 'ipb_user'),  array('ipblocks', 'ipb_by'),  array('watchlist', 'wl_user'), );