Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UTMaltor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
UTMaltor
Commits
828b39f9
Commit
828b39f9
authored
5 years ago
by
scardinius
Browse files
Options
Downloads
Patches
Plain Diff
Fix updating body html for given mailing
parent
9403d87b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utmaltor.php
+2
-1
2 additions, 1 deletion
utmaltor.php
with
2 additions
and
1 deletion
utmaltor.php
+
2
−
1
View file @
828b39f9
...
...
@@ -140,10 +140,11 @@ function _utmaltor_RunEvent_alterUrl(\Civi\FlexMailer\Event\RunEvent $event) {
not from the changes we just made. So let's update the db. Need to do it with direct sql
so we can avoid updating the modified_date timestamp. */
if
(
$mailing
->
template_type
&&
$mailing
->
template_type
==
'traditional'
)
{
$sql
=
'UPDATE civicrm_mailing SET body_html = %1, body_text = %2, modified_date = modified_date'
;
$sql
=
'UPDATE civicrm_mailing SET body_html = %1, body_text = %2, modified_date = modified_date
WHERE id = %3
'
;
$params
=
[
1
=>
[
$mailing
->
body_html
,
'String'
],
2
=>
[
$mailing
->
body_text
,
'String'
],
3
=>
[
$mailing
->
id
,
'Integer'
]
];
\CRM_Core_DAO
::
executeQuery
(
$sql
,
$params
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment