Default for Campaign Type field causes incorrect wizard #2009
Labels
Priority:Moderate
Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
The campaign type field is partially used to decide which template to show for the campaign wizard. A default value for this field can cause the wrong wizard to be shown (asking for an email template for a non email campaign for example.
Expected Behavior
Non email wizard should be displayed.
Actual Behavior
Newsletter wizard is displayed instead.
Possible Fix
Fix the check around line 120 of modules/Campaigns/WizardNewsletter.php to always use the wizardtype from request if it exists.
Steps to Reproduce
Context
Your Environment
Ubuntu 14.04
PHP 5.5.9
MySQL 5.5.50
The text was updated successfully, but these errors were encountered: