Skip to content

[stable8.5] fix(contacts): handle line manager property creation#5347

Merged
hamza221 merged 1 commit into
stable8.5from
backport/5304/stable8.5
May 21, 2026
Merged

[stable8.5] fix(contacts): handle line manager property creation#5347
hamza221 merged 1 commit into
stable8.5from
backport/5304/stable8.5

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 21, 2026

Backport of PR #5304

Adding the Line manager field created an empty x-managersname property and
then immediately tried to focus the newly rendered editor. When the property
had no matching contact value, the select received an undefined value and no
focusable field was available.

This produced the following JavaScript errors:

- No focusable element found for property x-managersname
- TypeError: can't access property "toLowerCase", this.localValue is undefined

Keep empty manager properties represented as an empty string, guard select
matching before lowercasing the local value, and store the only available
manager using the vCard display name plus UID parameter instead of the
internal contact key.

Fixes #4454

Signed-off-by: Nicolas Gelot <nicolas.gelot@e.email>
@backportbot backportbot Bot requested review from GVodyanov and hamza221 as code owners May 21, 2026 13:18
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews feature: contacts labels May 21, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...onents/ContactDetails/ContactDetailsAddNewProp.vue 0.00% 2 Missing ⚠️
...mponents/ContactDetails/ContactDetailsProperty.vue 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@hamza221 hamza221 merged commit 2fc608f into stable8.5 May 21, 2026
33 of 34 checks passed
@hamza221 hamza221 deleted the backport/5304/stable8.5 branch May 21, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: contacts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants