Skip to content

Filings UI: Address update not reflected during edit after adding a new director without submitting #32207

Closed

Description

@gunanagar

Describe the bug in current situation
COD UI: Address update not reflected during edit after adding a new director without submitting
Link bug to the User Story

Impact of this bug
N/A

Chance of Occurring (high/medium/low/very low)

Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?
N/A

Steps to Reproduce
Steps to reproduce the behaviour:

  1. Login as a user - BCREG0023
  2. Go to 'https://test.business-dashboard.bcregistry.gov.bc.ca/BC1200364?accountid=200
  3. Click on "Change Current Directors.'
  4. Click "Appoint New Director" and provide the delivery address and mailing address as the same
  5. click done
  6. Click edit from the Address table
  7. Add mailling adress insted of the same delivery address
  8. Click DONE

Actual/ observed behaviour/ results
The address change is not reflected in the table during editing

Expected behavior
Changes during edit should be displayed.

Screenshots/ Visual Reference/ Source

Screenshot 2026-01-29 at 1.14.07 PM.png

Screenshot 2026-01-29 at 1.16.43 PM.png

Activity

  1. self-assigned this
    on Jan 28, 2026
  2. added
    bug
    Entities Team
    on Jan 28, 2026
  3. Mihai-QuickSilverDev commented on Jan 29, 2026

    @Mihai-QuickSilverDev
    Collaborator

    @gunanagar @severinbeauvais

    • The functionality is okay, even if the data is not blocked at the point of entry.
    • The code trims the extra characters and saves it correctly.
    • Usually this happens when users copy and paste in this field, so all good.
  4. changed the title [-]COD UI - Address validation issue with invalid spaces [/-] [+]COD UI - Address update are not refellected during edit after add a new director with out submit[/+] on Jan 29, 2026
  5. gunanagar commented on Jan 29, 2026

    @gunanagar
    CollaboratorAuthor

    @Mihai-QuickSilverDev , i found this during space validation in adress. Now changed the steps to recreate. Pls have a look . Thanks

  6. changed the title [-]COD UI - Address update are not refellected during edit after add a new director with out submit[/-] [+]COD UI: Address update not reflected during edit after adding a new director without submitting[/+] on Jan 29, 2026
  7. changed the title [-]COD UI: Address update not reflected during edit after adding a new director without submitting[/-] [+]Filings UI: Address update not reflected during edit after adding a new director without submitting[/+] on Jan 29, 2026
  8. severinbeauvais commented on Jan 29, 2026

    @severinbeauvais
    Collaborator

    SB says: there is a console message indicating what went wrong. Need to investigate and fix.

  9. self-assigned this
    on Feb 25, 2026
  10. loneil commented on Feb 25, 2026

    @loneil
    Collaborator

    saveEditDirector() could not find original director with id = 5
    It's bailing out in

        if (!origDirector) {
          // eslint-disable-next-line no-console
          console.log('saveEditDirector() could not find original director with id =', id)
          this.cancelEditDirector()
          return
        }
    

    because it's a new added director, need to adjust this guard to let it through. Looks like this has been around for 7 months and affects any attempted edit of a newly added (not saved yet) director.

    Fixing in a PR now

  11. loneil commented on Feb 25, 2026

    @loneil
    Collaborator

    QA Notes

    Test the fix (new directors):

    1. Go to Change of Directors for a business
    2. Click "Appoint New Director", fill in name and addresses, click Done
    3. Click "Edit" on the newly added director row
    4. Change address details, click Done
    5. Verify the table shows the updated address
    6. Click "Edit" again — verify the updated address persists (not the original)
    7. Repeat steps 3-6 verify address details can be updated over again
    8. Try above with multiple appointed new directors

    Regression — existing directors should be unaffected:

    1. From the same Change of Directors page, pick an existing director
    2. Use the dropdown menu to "Change address"
    3. Modify the address, click Done
    4. Verify the table updates and the "Address Changed" chip appears
    5. Edit the address again — verify the change persisted
    6. Use "Change legal name" — verify it still requires the legal name confirmation checkbox and works as before
  12. self-assigned this
    on Feb 26, 2026
  13. gunanagar commented on Mar 2, 2026

    @gunanagar
    CollaboratorAuthor

    Tested the fix (new directors): - Below scenarios, all good. Also did regression also.

    Go to Change of Directors for a business
    Click "Appoint New Director", fill in name and addresses, click Done
    Click "Edit" on the newly added director row
    Change address details, click Done
    Verify the table shows the updated address - PASS
    Click "Edit" again — verify the updated address persists (not the original) - PASS
    Repeat steps 3-6 verify address details can be updated over again - PASS
    Try above with multiple appointed new directors
    Regression — existing directors should be unaffected: - PASS

    From the same Change of Directors page, pick an existing director. - PASS
    Use the dropdown menu to "Change address" - PASS
    Modify the address, click Done - PASS
    Verify the table updates and the "Address Changed" chip appears - PASS
    Edit the address again — verify the change persisted - PASS
    Use "Change legal name" — verify it still requires the legal name confirmation checkbox and works as before - PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamPriority1bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions