Skip to content
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

Fix #10586 - Unable to send marketing emails from the wizard for an inactive campaign #10588

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions modules/Campaigns/WizardMarketing.html
Original file line number Diff line number Diff line change
Expand Up @@ -1349,18 +1349,22 @@ <h4 class="header-4" style="border-bottom: solid 1px #eee;padding-bottom: 8px">{
</div>
<div class="template-panel-container panel-toolbar ">
<div class="template-container-full">
<div class="button-group">
<input type="hidden" name="wiz_home_next_step" value="1" />
{if $CAMPAIGN_STATUS != 'Inactive'}
<div class="button-group">
<input type="hidden" name="wiz_home_next_step" value="1" />

<a class="btn {if $PL_DISABLED}btn-default{else}btn-primary{/if} btn-sm" style="border-radius: 0px;" {if $PL_DISABLED} {else}href="javascript:;" onclick="onScheduleClick(this, '{$CAMPAIGN_ID}', $('#marketing_select').val());"{/if}>
<span class="suitepicon suitepicon-action-schedule"></span> {$MOD.LBL_SEND_EMAIL}
</a>
<a class="btn {if $PL_DISABLED}btn-default{else}btn-primary{/if} btn-sm" style="border-radius: 0px;" {if $PL_DISABLED} {else}href="javascript:;" onclick="onScheduleClick(this, '{$CAMPAIGN_ID}', $('#marketing_select').val());"{/if}>
<span class="suitepicon suitepicon-action-schedule"></span> {$MOD.LBL_SEND_EMAIL}
</a>

<a class="btn {if $PL_DISABLED_TEST}btn-default{else}btn-primary{/if} btn-sm" style="border-radius: 0px;" {if $PL_DISABLED_TEST} {else}href="javascript:;" onclick="onSendAsTestClick(this, '{$CAMPAIGN_ID}', $('#marketing_select').val());"{/if}>
<span class="suitepicon suitepicon-module-emails"></span> {$MOD.LBL_SEND_AS_TEST}
</a>
</div>
<div class="button-group-separator"></div>
<a class="btn {if $PL_DISABLED_TEST}btn-default{else}btn-primary{/if} btn-sm" style="border-radius: 0px;" {if $PL_DISABLED_TEST} {else}href="javascript:;" onclick="onSendAsTestClick(this, '{$CAMPAIGN_ID}', $('#marketing_select').val());"{/if}>
<span class="suitepicon suitepicon-module-emails"></span> {$MOD.LBL_SEND_AS_TEST}
</a>
</div>
<div class="button-group-separator"></div>
{else}
<div class="button-group"> {$MOD.LBL_CAMPAIGN_INACTIVE_WIZARD} </div>
{/if}
<div class="button-group">
<a class="btn btn-primary btn-sm" href="index.php?module=Campaigns&action=DetailView&record={$CAMPAIGN_ID}" style="border-radius: 0px;">{$MOD.LBL_TODETAIL_BUTTON_TITLE}</a>
</div>
Expand Down
1 change: 1 addition & 0 deletions modules/Campaigns/WizardMarketing.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
}
// handle Create $module then Cancel
$ss->assign('CAMPAIGN_ID', $campaign_focus->id);
$ss->assign('CAMPAIGN_STATUS', $campaign_focus->status);

$seps = get_number_separators();
$ss->assign("NUM_GRP_SEP", $seps[0]);
Expand Down
1 change: 1 addition & 0 deletions modules/Campaigns/language/en_us.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
//error messages.
'ERR_SENDING_NOW' => 'Messages are being delivered , please try this later.',

'LBL_CAMPAIGN_INACTIVE_WIZARD' => 'Sending buttons will not show on inactive campaigns.',
'LBL_TRACK_ROI_BUTTON_LABEL' => 'View ROI',
'LBL_TRACK_DELETE_BUTTON_TITLE' => 'Delete Test Entries',
'LBL_TRACK_DELETE_BUTTON_LABEL' => 'Delete Test Entries',
Expand Down