Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set the only email address as primary #26758

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Jun 13, 2024

Some features rely on the Contact having the primary email set. If the Contact has only one email address, we can mark it as primary automatically. Only if there are more than one addresses available, the user has to choose which one should be set as primary.

primary_email.mov

no-docs (for now)

Internal ref: MRC-140

Some features rely on the Contact having the primary email set. If the Contact has only one email address, we can mark it as primary automatically. Only if there are more than one  addresses available, the user has to choose which one should be set as primary.
@barredterra barredterra added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 labels Jun 13, 2024
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Jun 13, 2024
@barredterra barredterra removed the add-test-cases Add test case to validate fix or enhancement label Jun 13, 2024
@rehanrehman389
Copy link

rehanrehman389 commented Jun 13, 2024

@barredterra there are two email IDs as shown in the video sample, and the user removes the tick as shown, leaving no primary email address, should we then make one of the emails primary? What is the use case?

@barredterra
Copy link
Collaborator Author

barredterra commented Jun 13, 2024

@rehanrehman389 If many emails are available and none is marked as primary, they are treated as equals and neither is automatically set as the primary. I did not change this part of the code. Only when there is exactly one email address in the table, we can be certain that it must be the primary and automatically enable the checkbox for the user.

@barredterra barredterra merged commit 1a8248a into frappe:develop Jun 14, 2024
24 checks passed
@barredterra barredterra deleted the auto-primary_email branch June 14, 2024 16:00
barredterra added a commit that referenced this pull request Jun 15, 2024
…-26758

feat: set the only email address as primary (backport #26758)
barredterra added a commit that referenced this pull request Jun 15, 2024
…-26758

feat: set the only email address as primary (backport #26758)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants