6 RT->Logger->debug("Adding search for bookmarked tickets to defaults");
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( 'HomepageSettings' );
13 RT->Logger->error("You have no global home page settings");
16 my $content = $attr->Content;
17 unshift @{ $content->{'body'} ||= [] },
18 { type => 'system', name => 'Bookmarked Tickets' };
20 my ($status, $msg) = $attr->SetContent( $content );
21 RT->Logger->error($msg) unless $status;
23 RT->Logger->debug("done.");