Changeset 209


Ignore:
Timestamp:
06/22/09 14:31:46 (8 years ago)
Author:
sander
Message:

Always update Request counterCache on Job->save()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/models/job.php

    r201 r209  
    4949        public function updateCounterCache($keys = array(), $created = false) 
    5050        { 
    51                 $keys = empty($keys) ? $this->data[$this->alias] : $keys; 
    52                 if (!isset($keys['result_id']) || !$keys['result_id']) { 
    53                         return; 
    54                 } 
    55  
    5651                $request_id   = $this->field('request_id'); 
    5752                $job_count    = $this->find('count', array('conditions' => array('request_id' => $request_id))); 
Note: See TracChangeset for help on using the changeset viewer.