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

Saving a Component with Default TRUE Should Un-set Default for Other Instances

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: CiviMail
    • Labels:
      None

      Description

      CiviMail allows multiple instances of civicrm_mailing_component record with the same "component_type". Currrently, if you add another instance of a component (/civicrm/mailing/component?action=add&reset=1) - and set Default = TRUE, you wind up with two records of the same type, both with is_default = 1.

      Create and Update component should set is_default = 0 for any existing components with the same component type if the current record has is_default = 1.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: