medic / angular10-migration

0 stars 0 forks source link

Incorrect primary contact link when primary contact is not a child of the place #99

Open dianabarsan opened 3 years ago

dianabarsan commented 3 years ago

To reproduce:

  1. Create / edit a place, and set a primary contact whose parent is not this place.
  2. Open this place's detail page.
  3. In the People list, hover over the primary contact's entry and observe that the link is: #/contacts/undefined.
  4. Click on the link. The URL changes to #/contacts/undefined and the view doesn't change (this is another bug, covered by https://github.com/medic/angular10-migration/issues/96).

image

Expected and in master: The link should point to the primary contact.

dianabarsan commented 3 years ago

cc @njogz