Skip to content

fix(contacts): handle line manager property creation#5304

Open
nfk wants to merge 1 commit intonextcloud:stable8.3from
nfk:fix/line-manager-property
Open

fix(contacts): handle line manager property creation#5304
nfk wants to merge 1 commit intonextcloud:stable8.3from
nfk:fix/line-manager-property

Conversation

@nfk
Copy link
Copy Markdown

@nfk nfk commented May 7, 2026

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

@nfk nfk requested review from GVodyanov and hamza221 as code owners May 7, 2026 09:05
@hamza221 hamza221 added bug Something isn't working 3. to review Waiting for reviews feature: contacts labels May 7, 2026
Comment thread src/components/ContactDetails/ContactDetailsAddNewProp.vue
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 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!

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 nextcloud#4454

Signed-off-by: Nicolas Gelot <nicolas.gelot@e.email>
@nfk nfk force-pushed the fix/line-manager-property branch from bb82bc4 to f7f6af4 Compare May 7, 2026 20:07
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