Marketing Emails can be created without required fields #4685

Open
opened 2026-02-20 16:22:02 -05:00 by deekerman · 0 comments
Owner

Originally created by @SinergiaCRM on GitHub (Jan 18, 2022).

Issue

In the campaign wizard it is possible to create marketing emails that do not have information in all the required fields, causing problems in later sending operations. It can happen in two ways:

  1. When we get to the Marketing step of the wizard from the previous step (Templates), the email marketing and the relationship with the email template have already been generated in the database, that is, if we exit the wizard at this point and go to the campaign detail view, we'll see in the Marketing Emails subpanel a record with no name, no start date, and no data in other fields that would have been filled in in the Marketing step of the wizard.

  2. When we have empty mandatory fields in the Marketing step and click on the Next button, the changes are saved despite the fact that validation messages appear on the interface indicating that the mandatory fields must be filled in. The same thing happens when editing an existing marketing email through the wizard.

Expected Behavior

  1. When moving from the Templates step to the Marketing step, the marketing email should not have been created until the information from the Marketing step is filled in.

  2. In the Marketing step, if you have not filled in all the mandatory fields and the validation error is skipped, the marketing email should not have been modified when clicking on the next button

Steps to Reproduce

  1. Create an email campaign from the wizard and go to the Marketing step.
  2. Exit the wizard by clicking on view campaigns, access the campaign and check that the marketing email has been created without name or date.
  3. Edit the marketing email, go to the Marketing step and fill in the name. Leave Start Date empty and click Next.
  4. After displaying the validation error due to missing required fields, go back to the detail view of the campaign and check that the email marketing has been created without the start date.

Context

Medium
When trying to send a marketing email that does not contain any of the required fields (such as the start date) errors occur in the email queue or in the campaign sending process.

Your Environment

SuiteCRM Version used: Version 7.11.15
Browser name and version: Chrome Versión 97.0.4692.71 (Build oficial) (64 bits)
Environment name and version: MySQL, PHP 7
Operating System and version: Ubuntu 18.04

Originally created by @SinergiaCRM on GitHub (Jan 18, 2022). #### Issue In the campaign wizard it is possible to create marketing emails that do not have information in all the required fields, causing problems in later sending operations. It can happen in two ways: 1. When we get to the Marketing step of the wizard from the previous step (Templates), the email marketing and the relationship with the email template have already been generated in the database, that is, if we exit the wizard at this point and go to the campaign detail view, we'll see in the Marketing Emails subpanel a record with no name, no start date, and no data in other fields that would have been filled in in the Marketing step of the wizard. 2. When we have empty mandatory fields in the Marketing step and click on the Next button, the changes are saved despite the fact that validation messages appear on the interface indicating that the mandatory fields must be filled in. The same thing happens when editing an existing marketing email through the wizard. #### Expected Behavior 1. When moving from the Templates step to the Marketing step, the marketing email should not have been created until the information from the Marketing step is filled in. 2. In the Marketing step, if you have not filled in all the mandatory fields and the validation error is skipped, the marketing email should not have been modified when clicking on the next button #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Create an email campaign from the wizard and go to the Marketing step. 2. Exit the wizard by clicking on view campaigns, access the campaign and check that the marketing email has been created without name or date. 3. Edit the marketing email, go to the Marketing step and fill in the name. Leave Start Date empty and click Next. 4. After displaying the validation error due to missing required fields, go back to the detail view of the campaign and check that the email marketing has been created without the start date. #### Context Medium When trying to send a marketing email that does not contain any of the required fields (such as the start date) errors occur in the email queue or in the campaign sending process. #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> SuiteCRM Version used: Version 7.11.15 Browser name and version: Chrome Versión 97.0.4692.71 (Build oficial) (64 bits) Environment name and version: MySQL, PHP 7 Operating System and version: Ubuntu 18.04
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4685
No description provided.