Changeset 1967

Show
Ignore:
Timestamp:
04/18/08 01:06:22 (19 months ago)
Author:
bchoate
Message:

Prevent assignment of dynamic build types for templates with a manual status. BugId:79383

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-35/lib/MT/CMS/Blog.pm

    r1957 r1967  
    19261926          } ); 
    19271927        for my $tmpl (@templates) { 
     1928            my $bt = $tmpl->build_type || 0; 
     1929            next if $bt == MT::PublishOption::DISABLED(); 
     1930            next if $bt == MT::PublishOption::MANUALLY(); 
     1931            next if $bt == MT::PublishOption::SCHEDULED(); 
     1932 
    19281933            $tmpl->build_type( $tmpl->type ne 'index' ? MT::PublishOption::DYNAMIC() : MT::PublishOption::ONDEMAND() ); 
    19291934            $tmpl->save(); 
     
    19411946        ); 
    19421947        for my $tmpl (@templates) { 
     1948            my $bt = $tmpl->build_type || 0; 
     1949            next if $bt == MT::PublishOption::DISABLED(); 
     1950            next if $bt == MT::PublishOption::MANUALLY(); 
     1951            next if $bt == MT::PublishOption::SCHEDULED(); 
     1952 
    19431953            $tmpl->build_type( MT::PublishOption::DYNAMIC() ); 
    19441954            $tmpl->save();