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

Editing a contact without an email type set fails even after checking the primary checkbox [8.6.0] #465

Open
eojedapilchik opened this issue Apr 20, 2024 · 0 comments
Labels
Area: Emails Issues & PRs related to all things regarding emails & email module Priority:Moderate Issues & PRs that are minor; broken styling; warns; there are practical workarounds Severity: Moderate Minor Impact Type: Bug Something isn't working

Comments

@eojedapilchik
Copy link
Contributor

eojedapilchik commented Apr 20, 2024

Issue

If you create contact with just the basic fields required, and do not tick anything on the email type, the contact is saved, but once you try to edit it again and save it, it throws a validation error. Even if you tick the email type as primary it fails.
It seems like validation is done on the previous dataset and not the staged or changed data of the contact, for the email field.

issue

Expected Behavior

Once you specify the email type when it was not set previously you should be able to save it without having a validation error.
No validation error should show and block saving action

Possible Fix

As a workaround you can click on the More information and then on save.

Steps to Reproduce

  1. Create a contact with just the first name, last name, email (but do not specify the email type, untick the primary)
  2. Edit the contact and tick the primary checkbox in the email, and try to save
  3. Validation error pops up

Context

Trying to save contacts after upgrade of SuiteCRM to 8.6, previous contacts did not have the email type set.

Your Environment

SuiteCRM 8.6 (upgraded from 8.2)

@eojedapilchik eojedapilchik changed the title When editing a contact without email type set it fails Editing a contact without an email type set fails even after checking the primary checkbox [8.6.0] Apr 20, 2024
@johnM2401 johnM2401 added Type: Bug Something isn't working Priority:Moderate Issues & PRs that are minor; broken styling; warns; there are practical workarounds Area: Emails Issues & PRs related to all things regarding emails & email module Severity: Moderate Minor Impact labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Emails Issues & PRs related to all things regarding emails & email module Priority:Moderate Issues & PRs that are minor; broken styling; warns; there are practical workarounds Severity: Moderate Minor Impact Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants