Skip to content

Commit

Permalink
PRESIDECMS-2980 do not use request cache when getting template in upd…
Browse files Browse the repository at this point in the history
…ateScheduleSendFields
  • Loading branch information
Pixl8RusselCole committed Dec 9, 2024
1 parent dc47fc3 commit 31f47a2
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 31f47a2

Please sign in to comment.