New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Last active as contact field #6279
Last active as contact field #6279
Conversation
public function up(Schema $schema) | ||
{ | ||
$sql = <<<SQL | ||
INSERT INTO `{$this->prefix}lead_fields` (`is_published`, `label`, `alias`, `type`, `field_group`, `default_value`, `is_required`, `is_fixed`, `is_visible`, `is_short_visible`, `is_listable`, `is_publicly_updatable`, `is_unique_identifer`, `field_order`, `properties`, `object`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this be done with a proper doctrine query builder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Woeler, this style of code writing has already been seen and accepted previously for the 2.14.2 release in this PR https://github.com/mautic/mautic/pull/6520/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok and tested with success.
Please be sure you are submitting this against the staging branch.
Description:
This PR added Last active date field as not removed contact field. Same logic like with attribution_date.
The enhancement allow use last_date with campaign contact field condition. Make sense with new campaign capabilities like #6132
Then we can create campaign with condition on last_active date and restart campaign until last_active is not less as some time. For example If contact's last active date is greather like 4 hours then send email/notification (abandoned cart)...
Steps to test this PR:
php app/console doctrine:schema:migration