Changeset 385


Ignore:
Timestamp:
07/07/10 11:37:26 (10 years ago)
Author:
sander
Message:

Fixed a bug with selecting the latest version of every application

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/controllers/requests_controller.php

    r367 r385  
    316316                $platform_id = ''; 
    317317                $application_id = ''; 
     318                $doctype_id = ''; 
    318319                foreach ($workers as $worker) { 
    319320                        if ($worker['Worker']['development']) { 
     
    321322                        } 
    322323 
    323                         if ($worker['Application']['id'] != $application_id || $worker['Platform']['id'] != $platform_id) { 
     324                        if ($worker['Application']['id'] != $application_id || $worker['Platform']['id'] != $platform_id || $worker['Doctype']['id'] != $doctype_id) { 
    324325                                if ($short_id) { 
    325326                                        $sets['latest'][] = $short_id; 
     
    328329                                $platform_id = $worker['Platform']['id']; 
    329330                                $application_id = $worker['Application']['id']; 
     331                                $doctype_id = $worker['Doctype']['id']; 
    330332                        } 
    331333 
Note: See TracChangeset for help on using the changeset viewer.