summaryrefslogtreecommitdiff
path: root/rt/etc/upgrade/4.0.4/content
blob: fdfcb3e273a0ddb609f081c5ecc42078c0edbfb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@Initial = (
    sub {
        use strict;
        my $templates = RT::Templates->new(RT->SystemUser);
        $templates->Limit(
            FIELD => 'Type',
            OPERATOR => 'IS',
            VALUE => 'NULL',
        );
        while (my $template = $templates->Next) {
            my ($status, $msg) = $template->SetType('Perl');
            $RT::Logger->warning( "Couldn't change Type of Template #" . $template->Id . ": $msg" ) unless $status;
        }
    },
);