From f493215d4c09e9ef37eb4483aae7349eab46552c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 25 Aug 2023 14:07:57 +1200 Subject: [PATCH] Fix deprecation notice on ExecuteJob screen --- CRM/Admin/Form/Job.php | 9 +++++++++ templates/CRM/Admin/Form/Job.tpl | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/Job.php b/CRM/Admin/Form/Job.php index 3f7048f7fe..7942b1a750 100644 --- a/CRM/Admin/Form/Job.php +++ b/CRM/Admin/Form/Job.php @@ -293,4 +293,13 @@ class CRM_Admin_Form_Job extends CRM_Admin_Form { return $name . ' (' . $entity . '.' . $action . ')'; } + /** + * Override parent to do nothing - since we don't use this array. + * + * @return array + */ + protected function retrieveValues(): array { + return []; + } + } diff --git a/templates/CRM/Admin/Form/Job.tpl b/templates/CRM/Admin/Form/Job.tpl index f3e14eed70..d2c0582808 100644 --- a/templates/CRM/Admin/Form/Job.tpl +++ b/templates/CRM/Admin/Form/Job.tpl @@ -18,7 +18,7 @@ {elseif $action eq 4}
{icon icon="fa-info-circle"}{/icon} - {ts 1=$jobName}Are you sure you would like to execute %1 job?{/ts} + {ts 1=$jobName|escape:html}Are you sure you would like to execute %1 job?{/ts}
{else}
-- 2.25.1