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

Cloned experiment or winner mailing should have type standalone

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.16
    • Fix Version/s: 4.7.19
    • Component/s: CiviMail
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      The mailings of an A/B test have a `mailing_type` which can be experiment "experiment" or "winner". Other mailings have the type "standalone".

      When a user re-use a mailing that was part of an A/B test, the new mailing is a standalone one but has the type of the cloned mailing in database. Any code that reads this type will be misled and may behave wrongly. As a result the type value is not reliable, an additional check that the mailing is present in `civicrm_mailing_abtest` has to be done.

      The mailing type of a cloned mailing should be always be forced to "standalone".

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              romain Romain Thouvenin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: