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

Case Type ID should be required in Schema and prevent deleting case types that are in use

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.6
    • Fix Version/s: Unscheduled
    • Component/s: CiviCase
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Case type ID should be required in schema (this will also allow some tests to be enabled)

      The fix should also define the upgrade logic for existing DBs.

      AFAIK, there's no legit use-case for a null case_type_id. We could think a bit about what happens when a case-type is deleted, but frankly... no behavior (nulling or deleting) seems good. The right thing should be preventing deletion of case-types that are in-use.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: