Page MenuHomePhabricator

JavaScript error in the browser console after a Special:InvestigateBlock block success
Open, Needs TriagePublic1 Estimated Story PointsBUG REPORT

Description

After a block via Special:InvestigateBlock the script investigateblock.js tries to "infuse" #mw-input-wpReason but at this stage there is no #mw-input-wpReason widget.

Steps to reproduce
  1. Open Special:InvestigateBlock while logged into a user with the checkuser and sysop groups
  2. Open the browser console
  3. Fill out the form and successfully submit it

What happens
The browser console has a JavaScript error

What should happen
No error should appear in the browser console

Event Timeline

Change #1050635 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Fix JS error on success page of Special:InvestigateBlock

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

Dreamy_Jazz renamed this task from The "Error: Widget not found" warning is displayed in console after a Special:InvestigateBlock block success to JavaScript error in the browser console after a Special:InvestigateBlock block success.Fri, Jun 28, 3:06 PM
Dreamy_Jazz moved this task from General / Unsorted to Investigate on the CheckUser board.

Change #1050635 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Fix JS error on success page of Special:InvestigateBlock

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

Djackson-ctr subscribed.

Per the ticket Description, I have verified the new code has been implemented and is functioning and displaying as expected (no errors appeared in the Console Browser).