diff options
Diffstat (limited to 'rt/etc/upgrade/4.2.10/content')
-rw-r--r-- | rt/etc/upgrade/4.2.10/content | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rt/etc/upgrade/4.2.10/content b/rt/etc/upgrade/4.2.10/content new file mode 100644 index 000000000..d9aadccd5 --- /dev/null +++ b/rt/etc/upgrade/4.2.10/content @@ -0,0 +1,19 @@ +use strict; +use warnings; + +our @Initial = ( + sub { + my $attrs = RT::Attributes->new(RT->SystemUser); + $attrs->Limit( FIELD => 'Name', VALUE => 'SavedSearch' ); + while ( my $attr = $attrs->Next ) { + my $content = $attr->Content; + if ( $content->{ChartStyle} && $content->{ChartStyle} =~ /^(?:pie|bar)$/ ) { + $content->{ChartStyle} .= '+table+sql'; + my ($ret, $msg) = $attr->SetContent($content); + unless ( $ret ) { + RT->Logger->error("Failed to update ChartStyle for SavedSearch #" . $attr->id . ": $msg"); + } + } + } + }, +); |