Skip to content

Commit

Permalink
Merge pull request #27157 from eileenmcnaughton/execute
Browse files Browse the repository at this point in the history
Fix deprecation notice on ExecuteJob screen
  • Loading branch information
colemanw authored Aug 25, 2023
2 parents 47e4e7e + f493215 commit 784c86d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CRM/Admin/Form/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,4 +293,13 @@ private static function getJobName($id) {
return $name . ' (' . $entity . '.' . $action . ')';
}

/**
* Override parent to do nothing - since we don't use this array.
*
* @return array
*/
protected function retrieveValues(): array {
return [];
}

}
2 changes: 1 addition & 1 deletion templates/CRM/Admin/Form/Job.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 784c86d

Please sign in to comment.