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

When only one sub-type is defined for an Individual contact, Contact Type drop down does not appear on Contact Edit form.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.1, 4.1.2
    • Fix Version/s: 4.1.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When only one sub-type is defined for the Individual contact types, the drop down list of contact types does not appear when editing an Individual contact. This can be confirmed on the demo site by disabling two of three Individual sub-types.

      The problem appears to be in this bit of javascript in the 'add' page (around line 469 when viewing the source code on the demo site)

      if (cj('#contact_sub_type *').length ==1)

      {//if they aren't any subtype we don't offer the option cj('#contact_sub_type').parent().hide(); }

      Seems like it should be:

      if (cj('#contact_sub_type *').length == 0)

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              epmcl Ed McLaughlin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: