X2Engine / X2CRM

X2CRM Open Source CRM - PHP
http://www.x2crm.com
342 stars 167 forks source link

Raymond add to newsletter action #120

Closed raymondcolebaugh closed 7 years ago

raymondcolebaugh commented 7 years ago

In order to provide an easier means of managing a newsletter while accepting submissions both from newsletter forms and web lead forms, an AddToNewsletter workflow action has been added. This enables users to use the New Web Lead trigger to place leads into an existing newsletter contact list.

Furthermore, an afterDelete() hook has been added to Contacts to remove old X2ListItem entries, preventing a removed contact from being emailed and empty X2ListItem entries from lingering in the database.

Includes unit test for X2Lists.addIds() previous and new functionality.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.001%) to 29.801% when pulling 7bdc179ade2181c6c1220c43e097544006a8893e on raymond_addToNewsletterAction into 43eab92c99974be111c5733c967081a8a541f0a2 on development.