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