Last modified: 2014-11-12 23:43:23 UTC
Created attachment 14989 [details] Screenshot Steps to reproduce: 1.Open a page with VE 2.Go to Insert>Template 3.Click on Show Options 4.Click on the trash icon. 5.Click on "Add Content" Observed Result: The "Insert transclusion" button becomes enabled and an empty transclusion with empty content gets added upon clicking on it. See the screenshot attached Test Environment: https://test2.wikipedia.org/ Browser: Chrome Version 26.0.1410.65 OS: MAC OS X 10. 8. 5
Created attachment 14990 [details] Screenshot
Also, there is an error in the console: Uncaught TypeError: Cannot read property 'length' of null
*** Bug 63340 has been marked as a duplicate of this bug. ***
See also bug 63340, which was duped to this one but is actually subtly different: it's about when the only part is a TemplatePlaceholderPage
Change 169638 had a related patch set uploaded by Alex Monk: MWTransclusionModel: Exclude parts serialising to '' from the plain object https://gerrit.wikimedia.org/r/169638
Change 169638 merged by jenkins-bot: MWTransclusionModel: Exclude parts serialising to '' from the plain object https://gerrit.wikimedia.org/r/169638
Verified the fix in test2
Verified the fix in production