Another issue I've found is that setThirdPartySetting() cannot be used to store the last cron execution time. Because that setting is stored in webform configuration and then you'll found that the active configuration is not in sync with the staged one.

You should use the state API for that. You can see an example in https://api.drupal.org/api/drupal/core%21core.api.php/function/hook_cron...

BTW, if you need help I've made some changes to the BulkEmailWebformHandler class I can share with you. Even I can contribute with the project if you give me access to the repository :)

Kind regards.

Comments

jmsosso created an issue. See original summary.

ore’s picture

Any chance you can share what you have done as I'm just fixing a few things and trying to get the csv generation to work (which is not for me, well it's generating just not attaching to the email) and maybe you have already done this.

  • draenen committed 33fa821 on 1.0.x
    Issue #3175697 by jmsosso: The handler changes the active Drupal...
draenen’s picture

Status: Active » Fixed

Commited, thanks.

draenen’s picture

Assigned: jmsosso » Unassigned
Status: Fixed » Active

Ah, sorry. I updated the wrong task. This is still active.

  • draenen committed 2571b878 on 2.0.x
    git commit -m 'Issue #3175697 by draenen: The handler changes the active...
draenen’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.