mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +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++ ) {
|
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 ) {
|
||||||
|
|
Loading…
Reference in a new issue