Skip to content

Edit UI: Incorrect “Changed” label displayed when address has not changed #25556

Open

Description

@AimeeGao

Description:

In the Edit UI, the "CHANGED" label incorrectly appears for address fields. This occurs when editing the Registered Office section during Conversion to Full Restoration and Limited Restoration Extension processes.

Examples:

Conversion to Full Restoration:
https://test.edit.business.bcregistry.gov.bc.ca/BC1198844/limitedRestorationToFull?accountid=1999&restoration-id=409750

Limited Restoration Extension:
https://test.edit.business.bcregistry.gov.bc.ca/BC1198846/limitedRestorationExtension?accountid=1999&restoration-id=409738

image.png

Steps to Reproduce:

  1. Navigate to Your Company section in Edit UI
  2. Select Edit for Registered Office
  3. Without modifying any address information, click Done
  4. Click Save and Resume Later
  5. Return to the draft filing from the TODO list
  6. Found the Changed labels appear
  7. Click the Undo button
  8. Found no changes to the addresses

Current Behavior:

The "CHANGED" label appears on address fields even if we don't change the addresses after we click the Done button.
After we clicked the Undo button, we found the address information remained identical to the original.
image.png

Activity

  1. added
    Entities Team
    bug
    on Jan 29, 2025
  2. severinbeauvais commented on Mar 17, 2025

    @severinbeauvais
    Collaborator

    TO THE DEVELOPER: it's possible that the comparison of old-vs-new address is failing because it's not checking the right address properties (such as id). This needs to be reviewed. It might make sense to create a specific address-comparison method that doesn't compare objects but instead compares the desired properties.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamPriority3bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions