Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5103 Implement contact subtype
  3. CRM-5218

Interface to allow Add/Update/Enable/Disable subtypes

    Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Add an interface to allow Add/Update/Enable/Disable subtypes.

      Update:
      =====
      Freezes basic type and only allows changing the subtype label. Affect should immediately be visible at all the places like contact view screen, create new contact list etc

      Disable/Enable:
      ==========
      Makes a type in-active. Lists displaying types would automatically exclude the inactive type.

      Delete:
      =====
      Shouldn't be allowed (with a message), if there are any custom data associated with the type being deleted, which is expected to be deleted manually from custom data screen.
      Just before the deletion, contact_sub_type value for all contacts (with subtype as type being deleted) should be unset (or updated to NULL)

      Disabling Built-in Types - Not Supported for this Release
      ===========================================
      NOTE: Much of the work to support disabling of Built-in contact types (e.g. Household or Organization) has been committed under this issue. However, there are still some some open issues / areas to test and handle so we are NOT exposing the ability to disable built-in types to the administrative UI. If you really need that functionality you can experiment with disabling the contact type manually in the DB - ping us on IRC to discuss.

        Attachments

        1. Picture 1.png
          46 kB
          David Greenberg
        2. Picture 2.png
          44 kB
          David Greenberg

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              deepak Deepak Srivastava
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 3 weeks, 30 minutes Remaining Estimate - 3 hours
                3h
                Logged:
                Time Spent - 3 weeks, 30 minutes Remaining Estimate - 3 hours
                3w 30m