Skip to content

Add Activity action: remember send_email "no" selection

Sandor Semsey requested to merge (removed):activity-send-email into master

Before

When editing 'Add activity to contact' action, selecting 'No' on 'Send Email to Assigned Contacts' is saved, but when opening this screen again the selection got "forgotten". This is quite annoying as it is a required field.

After

Setting 'No' on 'Send Email to Assigned Contacts' is remembered.

Technical

send_email is stored as "0". When setting defaultValues for the form !empty($data['send_mail']) is false, so default value is not set for this field. Changed it to the null coalescing operator.

Merge request reports