X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fetc%2Fupgrade%2F3.8.4%2Fcontent;h=14ecba461a07cbd81fb5e5d0f67b1e14458a3ae7;hb=a72a10f754f7465121d6137bb3dcee0a21ea6443;hp=be5a6bf3938720715fc5a695e2d86d42758e5a55;hpb=b4b0c7e72d7eaee2fbfc7022022c9698323203dd;p=freeside.git diff --git a/rt/etc/upgrade/3.8.4/content b/rt/etc/upgrade/3.8.4/content index be5a6bf39..14ecba461 100644 --- a/rt/etc/upgrade/3.8.4/content +++ b/rt/etc/upgrade/3.8.4/content @@ -4,7 +4,7 @@ $RT::Logger->debug("Going to correct arguments of NotifyGroup actions if you have any"); use strict; - my $actions = RT::ScripActions->new( $RT::SystemUser ); + my $actions = RT::ScripActions->new( RT->SystemUser ); $actions->Limit( FIELD => 'ExecModule', VALUE => 'NotifyGroup', @@ -21,9 +21,9 @@ my $obj; next unless $r->{'Type'}; if( lc $r->{'Type'} eq 'user' ) { - $obj = RT::User->new( $RT::SystemUser ); + $obj = RT::User->new( RT->SystemUser ); } elsif ( lc $r->{'Type'} eq 'group' ) { - $obj = RT::Group->new( $RT::SystemUser ); + $obj = RT::Group->new( RT->SystemUser ); } else { next; } @@ -45,7 +45,7 @@ if ( my $struct = eval { Storable::thaw( $argument ) } ) { $new = $converter->( $struct ); } else { - $new = join /, /, grep length, split /[^0-9]+/, $argument; + $new = join ", ", grep length, split /[^0-9]+/, $argument; } next if $new eq $argument;