Status Check Actions - Allow off-site info link ("More info"). Update docblock.
authorTim Otten <totten@civicrm.org>
Thu, 11 Jan 2024 00:09:53 +0000 (16:09 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 12 Jan 2024 21:46:37 +0000 (13:46 -0800)
CRM/Utils/Check/Message.php
ang/crmStatusPage/StatusPageCtrl.js

index 8aae42516f2fe799e8f0908eb276ef019c540094..deb4a4b6cbbaba23ff7ed9a6479cfb19e353d81e 100644 (file)
@@ -155,6 +155,9 @@ class CRM_Utils_Check_Message {
    *   Currently supports: api3 or href
    * @param array $params
    *   Params to be passed to CRM.api3 or CRM.url depending on type
+   *   Ex: ['MyApiEntity', 'MyApiAction', [...params...]]
+   *   Ex: ['path' => 'civicrm/admin/foo', 'query' => 'reset=1']
+   *   Ex: ['url' => 'https://example.com/more/info']
    * @param string $icon
    *   Fa-icon class for the button
    */
index 737518d190a3d79d0decaa4c89917eff69aef781..b1bc2ec229159cb677d335534f5a9e2abb6c1f35 100644 (file)
@@ -51,7 +51,7 @@
         function run() {
           switch (action.type) {
             case 'href':
-              window.location = CRM.url(action.params.path, action.params.query, action.params.mode);
+              window.location = action.params.url ? action.params.url : CRM.url(action.params.path, action.params.query, action.params.mode);
               break;
 
             case 'api3':