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

Api mailing create should work without logged in user (eg. drush)

    Details

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

      Description

      The database field created_id is not compulsory, and is set to NULL on contact.delete. However the field is compulsory through the api.

      I think it makes sense to allow mailings to be created with a NULL created_id (e.g via drush with no user set)

      I acknowledge I could work around this by using the -u switch with drush, but I feel like the logic of the field being optional at the api level given it is optional at the DB level is correct & hence I should fix it there

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: