Merge "Revert "Fix check for existing category in article.""

This commit is contained in:
jenkins-bot 2013-05-13 21:27:56 +00:00 committed by Gerrit Code Review
commit 4f70d23bc8

View file

@ -116,7 +116,7 @@ ve.ui.MWCategoryInputWidget.prototype.getLookupMenuItemsFromData = function ( da
for ( i = 0, len = matchingCategories.length; i < len; i++ ) {
item = matchingCategories[i];
if (
existingCategoryItems.indexOf( category.value ) === -1 &&
existingCategoryItems.indexOf( item ) === -1 &&
item.match( pattern )
) {
if ( item === category.value ) {