Page MenuHomePhabricator

Transcluding Special:Contributions adds JS to the destination page and throws JS error
Closed, ResolvedPublic

Description

When you transclude Special:Contributions, you get JS error:

Exception with thrown value: Error: Widget not found: mw-date-start

This is caused because the transclusion doesn't add the controls, but does add the JS module mediawiki.special.contributions

Special:Watchlist/RecentChanges had something similar not too long ago.

Event Timeline

Change 412677 had a related patch set uploaded (by TheDJ; owner: TheDJ):
[mediawiki/core@master] Contributions: Only add form JS when the form is added

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

TheDJ triaged this task as Lowest priority.

Change 412677 merged by jenkins-bot:
[mediawiki/core@master] Contributions: Only add form JS when the form is added

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