Page MenuHomePhabricator

Reported user field does not retain a previously entered username when the dialog is re-opened
Closed, ResolvedPublicBUG REPORT

Description

User You Would Like to Report text field is not retaining previously entered username or selected username when user exits and then re-opens the dialog.

Steps to reproduce:

  1. Open this url: https://ko.wikipedia.beta.wmflabs.org/w/index.php?title=사용자토론:Bluedot&uselang=en
  2. Log in with a user that has at least 1 edit
  3. Go to a User Talk page
  4. Select the Report option
  5. Select Proceed to File A Report
  6. Select some behavior types
  7. At the User You Would Like To Report insert a username or select from list of usernames via autocompletion
  8. Enter some text into Additional Details field
  9. At this point you can either click on the X to exit/close the report page or press your ESC key on your keyboard or mouse click outside of the form page to exit/close the report
  10. Select the Report option
  11. Select Proceed to File A Report

Actual Result:
You will notice that your previously inserted info and selections are all showing BUT not the User You Would Like To Report, that field is now blank and does not show the username you previously inserted/selected

NOTE: At step 9 if you use the BACK button (instead of exiting the report) and then click Proceed to File A Report you will notice User You Would Like To Report is blank, but all other previously inserted/selected info is retained/showing.

Expected Result:
User You Would Like To Report text field should be displaying your previously entered OR selected username from Step 7.

Event Timeline

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

[mediawiki/extensions/ReportIncident@master] Pre-fill username component from DiscussionTools menu data

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

Dreamy_Jazz renamed this task from User You Would Like to Report text field is not retaining previously entered username or selected username when user exits the Report then reopens the Report to Reported user field does not retain a previously entered username when the dialog is re-opened.Oct 26 2023, 12:25 PM

Change 968698 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Pre-fill username component from DiscussionTools menu data

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

Test wiki created on Patch demo by DJacksonA using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/3bd06730af/w

Test wiki created on Patch demo by DJacksonA using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/fb27d4dfac/w

I have verified the fix for this issue has been implemented and is working as expected per the Ticket Description... Thank you @Dreamy_Jazz!!!
Testing was performed at the following url:
https://ko.wikipedia.beta.wmflabs.org/wiki/%EC%82%AC%EC%9A%A9%EC%9E%90%ED%86%A0%EB%A1%A0:SMTFiveE

Test wiki on Patch demo by DJacksonA using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/3bd06730af/w/

Test wiki on Patch demo by DJacksonA using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/fb27d4dfac/w/