2 # by incident we've changed 'My Bookmarks' to 'Bookmarked Tickets' when
3 # 3.7.82 upgrade script still was creating 'My Bookmarks', try to fix it
5 $RT::Logger->debug("Going to rename 'My Bookmarks' to 'Bookmarked Tickets'");
6 my $sys = RT::System->new($RT::SystemUser);
8 my $attrs = RT::Attributes->new( $RT::SystemUser );
9 $attrs->LimitToObject( $sys );
10 my ($attr) = $attrs->Named( 'Search - My Bookmarks' );
12 $RT::Logger->debug("You have no global search 'My Bookmarks'. Skipped.");
15 my ($status, $msg) = $attr->SetName( 'Search - Bookmarked Tickets' );
16 $RT::Logger->error($msg) and return undef unless $status;
18 $RT::Logger->debug("Renamed.");