Skip to content

Commit

Permalink
Fix salesagility#10586 - Unable to send marketing emails from the wiz…
Browse files Browse the repository at this point in the history
…ard for an inactive campaign
  • Loading branch information
SinergiaCRM committed Nov 25, 2024
1 parent e572230 commit 773698b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
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

0 comments on commit 773698b

Please sign in to comment.