mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Fix check for existing category in article."
This commit is contained in:
commit
5c4f14de0b
|
@ -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( item ) === -1 &&
|
||||
existingCategoryItems.indexOf( category.value ) === -1 &&
|
||||
item.match( pattern )
|
||||
) {
|
||||
if ( item === category.value ) {
|
||||
|
|
Loading…
Reference in a new issue