6 RT->Logger->debug("Going to adjust 'Bookmarked Tickets'");
7 my $sys = RT::System->new(RT->SystemUser);
9 my $attrs = RT::Attributes->new( RT->SystemUser );
10 $attrs->LimitToObject( $sys );
11 my ($attr) = $attrs->Named( 'Search - Bookmarked Tickets' );
13 RT->Logger->debug("You have no global search 'Bookmarked Tickets'. Skipped.");
16 my $props = $attr->Content;
17 $props->{'Query'} =~ s/__Bookmarks__/id = '__Bookmarked__'/g;
19 my ($status, $msg) = $attr->SetContent( $props );
20 RT->Logger->error($msg) and return undef unless $status;
22 RT->Logger->debug("Fixed.");