]> git.uio.no Git - usit-rt.git/blame - etc/upgrade/4.0.4/content
Putting 4.2.0 on top of 4.0.17
[usit-rt.git] / etc / upgrade / 4.0.4 / content
CommitLineData
af59614d
MKG
1use strict;
2use warnings;
3
4our @Initial = (
01e3b242
MKG
5 sub {
6 use strict;
7 my $templates = RT::Templates->new(RT->SystemUser);
8 $templates->Limit(
9 FIELD => 'Type',
10 OPERATOR => 'IS',
11 VALUE => 'NULL',
12 );
13 while (my $template = $templates->Next) {
14 my ($status, $msg) = $template->SetType('Perl');
af59614d 15 RT->Logger->warning( "Couldn't change Type of Template #" . $template->Id . ": $msg" ) unless $status;
01e3b242
MKG
16 }
17 },
18);
19