From 8d4a351059240c3ef2aca06968a39c62d82692ec Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 13 May 2013 21:24:03 +0000 Subject: [PATCH] Revert "Fix check for existing category in article." This reverts commit 50c48a1cac40196ff379638a2b5ad4dd206e3119 Change-Id: I3eca792883171a3390a9fc6f95ca42bfdedcf986 --- modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js b/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js index f54f0b3953..e7cbbf5bfe 100644 --- a/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js +++ b/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js @@ -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 ) {