AGO-3470- Debt model alert fails to display all linked models on the edit page

Reproduction steps:

Debt

  1. Create a property, linked debt, and linked income. Save.

  2. Create a term life insurance. Add the previously created debt to the “Debt Payout” tab. Save.

  3. Click the debt model. The linkage alert should show both property and term life insurance. Debt cannot be deleted unless unlinked from both property and insurance

ago-3470 pic 1.png
 

Line of credit

  1. Create a whole life insurance policy, then create a linked debt and line of credit.

  2. Edit the line of credit created in the previous step. Link a property to the property created earlier (debt step).

  3. In the basics tab, you’ll notice an alert showing both insurance and property linkage.

    ago-3470 pic 2.png
     
  4. If you save, you’ll see a validation error. This is expected. The alert correctly shows the linked models.

Other Income

  1. Click the income you created in the Debt step.

  2. Verify that a linked property alert appears.