Skip to content

Commit

Permalink
Merge branch 'feature-PRESIDECMS-2980_email-centre-scheduled-email-ha…
Browse files Browse the repository at this point in the history
…d-to-be-saved-twice' into release-10.28.0
  • Loading branch information
Pixl8RusselCole committed Dec 9, 2024
2 parents d945a1e + 31f47a2 commit 1c7a7e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system/services/email/EmailTemplateService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,13 @@ component {
* @markAsSent.hint Whether or not to mark a 'fixedschedule' template as sent
*/
public string function updateScheduledSendFields( required string templateId, boolean markAsSent=false ) {
var template = getTemplate( id=arguments.templateId, allowDrafts=true, fromVersionTable=false );
var template = getTemplate(
id = arguments.templateId
, allowDrafts = true
, fromVersionTable = false
, useRequestCache = false
);

var updatedData = { schedule_next_send_date = "" };

if ( template.sending_method == "scheduled" ) {
Expand Down

0 comments on commit 1c7a7e5

Please sign in to comment.