CRM-13447 (closes) include domain_id in job load criteria
authorEileen <eileen@fuzion.co.nz>
Tue, 24 Sep 2013 22:54:42 +0000 (10:54 +1200)
committerEileen <eileen@fuzion.co.nz>
Tue, 24 Sep 2013 22:54:42 +0000 (10:54 +1200)
----------------------------------------
* CRM-13447: Scheduled jobs should only run for relevant domain (they are stored by domain_id but don't always respect it)
  http://issues.civicrm.org/jira/browse/CRM-13447

CRM/Core/JobManager.php

index df490715a118bd3bbbdc5488df03f584295f188c..5a64877e1e5ce03a7aef5bb2532d82947e501c1f 100644 (file)
@@ -151,6 +151,7 @@ class CRM_Core_JobManager {
     $jobs = array();
     $dao = new CRM_Core_DAO_Job();
     $dao->orderBy('name');
+    $dao->domain_id = CRM_Core_Config::domainID();
     $dao->find();
     while ($dao->fetch()) {
       $temp = array();