Fix deprecation notice on ExecuteJob screen
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 25 Aug 2023 02:07:57 +0000 (14:07 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 25 Aug 2023 03:34:15 +0000 (15:34 +1200)
CRM/Admin/Form/Job.php
templates/CRM/Admin/Form/Job.tpl

index 3f7048f7fe4a0552f419b12a6e45c8f51deb5f5d..7942b1a75031ab51c820325fa9865e5a00ef7694 100644 (file)
@@ -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 [];
+  }
+
 }
index f3e14eed7073d265d71181c55111595fe8d5ec19..d2c0582808f7fe862470d745637957506898c235 100644 (file)
@@ -18,7 +18,7 @@
 {elseif $action eq 4}
   <div class="messages status no-popup">
       {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}
   </div>
 {else}
   <div class="help">