Page MenuHomePhabricator

Bug in category autocomplete when category contains :
Closed, DeclinedPublic

Description

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0

The category autocomplete doesn't work properly for categories with colons in them. The part of the category name after the colon doesn't show up in the list of options.

For example, I found this problem when trying to add the category: "Photographs by User:99of9"

https://secure.wikimedia.org/wikipedia/commons/w/index.php?title=Commons:Prototype_upload_wizard_feedback&diff=57457080&oldid=57450560


Version: unspecified
Severity: normal

Details

Reference
bz30300

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:58 PM
bzimport added a project: UploadWizard.
bzimport set Reference to bz30300.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 8900
screenshot of the bug

Attached:

Screen_shot_2011-08-09_at_23.09.26.png (256×292 px, 17 KB)

Seems that trunk has a totally different implementation, but the problem for deployed code is here:

http://svn.wikimedia.org/viewvc/mediawiki/branches/wmf/1.17wmf1/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js?revision=90676&view=markup

$j.each( pages, function( i, page ) {
var title = page.title.split( ':', 2 )[1];
titleArr.push( title );
} );

I'm not seeing a problem with this anymore, hopefully it's working for everyone because it definitely WFM.