my $sys = RT::System->new(RT->SystemUser);
my $attrs = RT::Attributes->new( RT->SystemUser );
$attrs->LimitToObject( $sys );
my ($attr) = $attrs->Named( 'Search - Bookmarked Tickets' );
unless ($attr) {
my $sys = RT::System->new(RT->SystemUser);
my $attrs = RT::Attributes->new( RT->SystemUser );
$attrs->LimitToObject( $sys );
my ($attr) = $attrs->Named( 'Search - Bookmarked Tickets' );
unless ($attr) {
return 1;
}
my $props = $attr->Content;
$props->{'Query'} =~ s/__Bookmarks__/id = '__Bookmarked__'/g;
my ($status, $msg) = $attr->SetContent( $props );
return 1;
}
my $props = $attr->Content;
$props->{'Query'} =~ s/__Bookmarks__/id = '__Bookmarked__'/g;
my ($status, $msg) = $attr->SetContent( $props );