Show
Ignore:
Timestamp:
04/18/08 04:44:30 (20 months ago)
Author:
takayama
Message:

Fixed BugId:79276
* Exclude 'clone template' from list action in template editing screen when template type is system or email.

Files:
1 modified

Legend:

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

    r1959 r1972  
    101101        $param->{saved_rebuild} = 1 if $q->param('saved_rebuild'); 
    102102 
     103        my $filter = $app->param('filter_key'); 
     104        if ($param->{template_group} eq 'email') { 
     105            $app->param( 'filter_key', 'email_templates' ); 
     106        }elsif  ($param->{template_group} eq 'system') { 
     107            $app->param( 'filter_key', 'system_templates' ); 
     108        } 
    103109        $app->load_list_actions( 'template', $param ); 
     110        $app->param( 'filter_key', $filter ); 
    104111 
    105112        $obj->compile;