'Print/merge document for memberships' Preview creates activities
Unlike 'Print/merge document' for contacts, for memberships the 'Print/merge document for memberships' task the Preview button will create activities.
As defined in CRM-16725 the difference between Preview and Download Document should be that activities are not created for Preview.
Steps to reproduce:
- Find Memberships, use any criteria
- Select some memberships and select the 'Print/merge document for memberships'
- Click Preview - PDF will be created
- Find Activities, search using appropriate criteria (Today) - activities will be seen for this task.
self::createActivities() is called unconditionally.
In contrast, for Contacts, in
self::createActivities() is inside an if statement: