Merge pull request #797 from FafnerKeyZee/2.4

Solving #786
pull/762/merge
Andras Iklody 2015-12-28 16:28:28 +01:00
commit c162443fe5
2 changed files with 2 additions and 2 deletions

View File

@ -1393,7 +1393,7 @@ class EventsController extends AppController {
'fields' => array('id', 'progress'),
'conditions' => array(
'job_type' => 'cache_' . $k,
'org' => $useOrg
'org_id' => $useOrg
),
'order' => array('Job.id' => 'desc')
));

View File

@ -70,7 +70,7 @@ class JobsController extends AppController {
$progress = $this->Job->find('first', array(
'conditions' => array(
'job_type' => $type,
'org' => $org
'org_id' => $org
),
'fields' => array('id', 'progress'),
'order' => array('Job.id' => 'desc'),