Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-16475

Prevent user from adding more than one Primary phone field to a profile

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.2
    • Fix Version/s: 4.6.3
    • Component/s: CiviCRM Profile
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Add form rule to block user from adding more than one field in a profile with field type = Phone and is_primary = TRUE. If user attempts to add a second primary phone field - form rule message is:
      "Only one primary phone field can be included in a profile."

      — Original post —
      Create a profile and add a phone field. Then attempt to add a second phone field of a different type (e.g. mobile).

      The form never saves, and the JSON returns a 500 error in the console. This is reproducible on the demo site.

        Attachments

          Activity

            People

            • Assignee:
              rohan1990 Rohan Ramesh Katkar
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: