Changeset 413
- Timestamp:
- 07/15/11 09:47:46 (10 years ago)
- Location:
- trunk/server/www/app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/www/app/models/behaviors/file.php
r356 r413 395 395 { 396 396 $path = $this->getPath($model); 397 if ( file_exists($path)) {398 if (! unlink($path)) {397 if ($path && file_exists($path)) { 398 if (!@unlink($path)) { 399 399 $this->errors[] = __('The file could not be deleted.', true); 400 400 } -
trunk/server/www/app/vendors/shells/jobs.php
r412 r413 25 25 { 26 26 /** @var array The models to use */ 27 public $uses = array('Galler iesRequest', 'Job', 'Testsuite');27 public $uses = array('Gallery', 'GalleriesRequest', 'Job', 'Testsuite'); 28 28 29 29 /** … … 73 73 $this->Testsuite->id = $suite_id; 74 74 $gallery_id = $this->Testsuite->field('gallery_id'); 75 $galleries = Set::extract('/Gallery/id', $this->Gallery->children($gallery_id)); 76 $galleries[] = $gallery_id; 75 77 76 78 $count = count($jobs); … … 79 81 'conditions' => array( 80 82 'request_id' => $jobs[$i]['Request']['id'], 81 'gallery_id' => $galler y_id,83 'gallery_id' => $galleries, 82 84 ), 83 85 'recursive' => -1, 84 86 )); 85 87 86 if ( $inGallery) {88 if (!$inGallery) { 87 89 unset($jobs[$i]); 88 90 }
Note: See TracChangeset
for help on using the changeset viewer.