diff options
author | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
commit | b4b0c7e72d7eaee2fbfc7022022c9698323203dd (patch) | |
tree | ba4cd21399e412c32fe3737eaa8478e3271509f9 /rt/etc/upgrade/3.8.0 | |
parent | 2dfda73eeb3eae2d4f894099754794ef07d060dd (diff) |
import rt 3.8.7
Diffstat (limited to 'rt/etc/upgrade/3.8.0')
-rw-r--r-- | rt/etc/upgrade/3.8.0/content | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rt/etc/upgrade/3.8.0/content b/rt/etc/upgrade/3.8.0/content new file mode 100644 index 000000000..f4e389b90 --- /dev/null +++ b/rt/etc/upgrade/3.8.0/content @@ -0,0 +1,22 @@ +@Final = ( + # by incident we've changed 'My Bookmarks' to 'Bookmarked Tickets' when + # 3.7.82 upgrade script still was creating 'My Bookmarks', try to fix it + sub { + $RT::Logger->debug("Going to rename 'My Bookmarks' to 'Bookmarked Tickets'"); + my $sys = RT::System->new($RT::SystemUser); + + my $attrs = RT::Attributes->new( $RT::SystemUser ); + $attrs->LimitToObject( $sys ); + my ($attr) = $attrs->Named( 'Search - My Bookmarks' ); + unless ($attr) { + $RT::Logger->debug("You have no global search 'My Bookmarks'. Skipped."); + return 1; + } + my ($status, $msg) = $attr->SetName( 'Search - Bookmarked Tickets' ); + $RT::Logger->error($msg) and return undef unless $status; + + $RT::Logger->debug("Renamed."); + return 1; + }, +); + |