ita-social-projects / EPlast

EPlast is a project to provide web-based multi-user system solutions for digitizing and automate the Plast organization. The system makes it easy to access Plast's internal data, such as events, reports, and documents, etc. Information and location of their affiliates and clubs throughout Ukraine.
MIT License
27 stars 11 forks source link

[Regions/Округи] The wrong region is shown when assigning a role for the user who changed the region #2938

Open ystrotska opened 1 year ago

ystrotska commented 1 year ago

Environment: Windows 10 Pro, Google Chrome version 103.0.5060.114 (development)(64-bit). Reproducible: always. Build found: 6f91a24

Preconditions The user should change the city/village that belongs to another region than was indicated while the user's registration.

Steps to reproduce

  1. Sign in as a super admin at https://eplast.westeurope.cloudapp.azure.com/
  2. Go to the left-side menu and click on the user's table
  3. Right-click on the user whose region while registration is different from the city/region he belongs actually
  4. Choose the "Додати в провід округи" option
  5. Check the name of the region/округа
  6. Fill in the fields in the popup menu and click on the "Опублікувати" button
  7. Check the notification in the user's profile
  8. Follow the link in the notification about assigning the new role in the Region/Округи

Actual result

  1. The user is notified the role was given in the region/окрузі that was indicated in the registration form.
  2. The admin sees the wrong region in the popup menu when assigning the role from the user's table.

wrong region in the notification region in registration form

assigning role in the region different from indicated while user's registration

region's administration role assigned in the newly joined region

Expected result

  1. The user should be notified the role was given in the actual region/окрузі
  2. The admin should see the actual region in the popup menu when assigning the role from the user's table.