Fix filtering logs by scheduled job
authorMatthew Wire <mjw@mjwconsult.co.uk>
Mon, 25 Sep 2023 13:02:50 +0000 (14:02 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Mon, 25 Sep 2023 13:06:30 +0000 (14:06 +0100)
ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html
ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php

index c29768ddc130ba8fc5df0c3fe63b908513db598c..2b596924efa1548b35bae66b221800bf1320d6e2 100644 (file)
@@ -2,12 +2,14 @@
   <div class="btn-group pull-right">
     
     
+    
     <a class="btn btn-primary" ng-href="{{:: crmUrl('civicrm/admin/job', {reset: 1}) }}">
       <i class="crm-i fa-list-alt"/>
       {{:: ts('Scheduled Jobs Listing') }}
     </a>
   
   
+  
   </div>
-  <crm-search-display-table search-name="Scheduled_Jobs_Log" display-name="Scheduled_Jobs_Log_Table_1"></crm-search-display-table>
+  <crm-search-display-table search-name="Scheduled_Jobs_Log" display-name="Scheduled_Jobs_Log_Table_1" filters="{job_id: routeParams.job_id}"></crm-search-display-table>
 </div>
index 8e97c1cfb56c95f462b29eea15a940e7414b151d..261b8f6967605c7bddae9d8457345784082c7609 100644 (file)
@@ -167,7 +167,7 @@ return [
                   'icon' => 'fa-file-o',
                   'text' => E::ts('View joblog'),
                   'style' => 'default',
-                  'path' => 'civicrm/admin/joblog?jid=[id]&reset=1',
+                  'path' => 'civicrm/admin/joblog#?job_id=[id]',
                   'condition' => [],
                 ],
                 [