Page MenuHomePhabricator

VisualEditor: [Regression wmf1] Adding categories, removing them, then cancelling the dialog throws “Uncaught TypeError: Cannot read property 'disconnect' of undefined”
Closed, ResolvedPublic

Description

screenshot 1

Environment- test2, beta

1> In VE, go to Options -> Categories. And add two categories.
2> Now delete the categories.Click on “Cancel” to close the options dialog.
3> Error in console, “Uncaught TypeError: Cannot read property 'disconnect' of undefined”(see screenshot 1)

After this step, reopen the Options dialog , notice the first Category is repeated( see screenshot 2).

Trying to delete any of the categories throws errors in console “Uncaught Error: Cannot remove detached item” and “Uncaught TypeError: Cannot read property 'metaItem' of undefined”.Clicking on Cancel or Apply changes does not close the dialog.


Version: unspecified
Severity: minor

Attached:

screenshot1.PNG (1×2 px, 112 KB)

Details

Reference
bz71471

Event Timeline

Created attachment 16634
screenshot 2

Attached:

screenshot2.png (498×1 px, 82 KB)

Change 163887 had a related patch set uploaded by Catrope:
Account for categories being removed twice in MWCategoryWidget

https://gerrit.wikimedia.org/r/163887

Change 163887 merged by jenkins-bot:
Account for categories being removed twice in MWCategoryWidget

https://gerrit.wikimedia.org/r/163887

Change 164018 had a related patch set uploaded by Jforrester:
Account for categories being removed twice in MWCategoryWidget

https://gerrit.wikimedia.org/r/164018

Change 164018 merged by Catrope:
Account for categories being removed twice in MWCategoryWidget

https://gerrit.wikimedia.org/r/164018

Issue is now fixed in beta too.

Verified the fix in production

Verified the fix in production