Merge "Fix check for existing category in article."

This commit is contained in:
jenkins-bot 2013-05-13 21:23:31 +00:00 committed by Gerrit Code Review
commit 5c4f14de0b

View file

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