Skip to content

Phone number validation fails when selecting a Contact Person created via MagicAI during manual lead creation #2447

@bhavesh-018

Description

@bhavesh-018

Bug report

Title

Phone number validation fails when selecting a Contact Person created via MagicAI during manual lead creation

Issue Description

When a Contact Person is created via MagicAI or file upload with a phone number containing a country code and formatting (for example +91-7120966590), selecting that person while manually creating a new lead causes the Contact Number field to show a validation error.
The phone number is auto-filled from the existing person but is immediately marked as invalid.

Preconditions

Please provide as detailed information about your environment as possible.

1. framework Version: Krayin CRM (Latest Master)
2. Commit id: HEAD

Steps to reproduce

  1. Create a lead via MagicAI or file upload with a Contact Person having a phone number like +91-7120966590
  2. Create a new lead manually.
  3. In the Contact Person section, select the previously created person from the dropdown.
  4. Observe the auto-filled Contact Number field.

Expected result

  1. The auto-filled phone number should be accepted as valid.
  2. No validation error should be shown for the Contact Number field.
  3. User should be able to create the lead without modifying the phone number.

Actual result

  1. The Contact Number field shows a validation error:
    This Contact Numbers must be a valid phone number.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions