Show
Ignore:
Timestamp:
06/04/08 02:10:09 (18 months ago)
Author:
fumiakiy
Message:

Check if build_type is changed to dynamic from something else and do not rebuild if no map is. BugId:80001

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/lib/MT/CMS/Template.pm

    r2491 r2502  
    13971397        require MT::TemplateMap; 
    13981398        my @p = $q->param; 
     1399        my @static_maps; 
    13991400        for my $p (@p) { 
    14001401            my $map; 
     
    14191420                my $build_type = $q->param($p); 
    14201421                require MT::PublishOption; 
     1422                # Populate maps that are changed from static to dynamic 
     1423                # This should capture new map as well 
     1424                push @static_maps, $map->id 
     1425                    if ( ( $build_type ne $map->build_type ) 
     1426                      && ( MT::PublishOption::DYNAMIC() eq $build_type ) ); 
    14211427                $map->build_type($build_type); 
    14221428                if ( $build_type == MT::PublishOption::SCHEDULED() ) { 
     
    14341440            } 
    14351441        } 
     1442        $app->{static_dynamic_maps} = @static_maps ? \@static_maps : 0; 
    14361443    } 
    14371444