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

can not update primary location type field details if same field available for other location types

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.7.28
    • Fix Version/s: 5.3
    • Component/s: None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      e.g

      In Profile

      Add email field with Primary Location Type

      Add email field with Work Location Type

       

      Then Edit primary email field and save with/o change.

      you will get message

      Field Not Added

      The selected field already exists in this profile.
       
      This is happening because when form submitted it check for duplicate field present in same profile. For primary location type field (location_type_id = NULL in DB and location_type_id = 0 in form)
      During validation location_type_id get skipped, since there is already another email field with different location type found. Then above error message shown.
       
       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sunil Sunil Pawar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: