[rt-users] RSS: Tickets with no subject disappear

Jesse Vincent jesse at bestpractical.com
Fri Sep 16 12:22:53 EDT 2005




On Fri, Sep 16, 2005 at 01:31:17PM +0400, cronfy - ipnet wrote:
> Hello everyone!
> 
> Is this a bug or a feature? When I download RSS for some queue
> or a search result, tickets with "No Subjest" are listed
> in <items> ... </items>, but they do not appear in <item>
> listing.
> So, tickets with no subject cannot be tracked via RSS viewer.


Crofty: try this patch?


jesse at hualien:~/svk/rt-3.4 $ svk diff
--- html/Search/Results.rdf     (revision 15752)
+++ html/Search/Results.rdf     (local)
@@ -75,7 +75,7 @@ $r->content_type('application/rdf+xml');
           link        => $RT::WebURL."/Ticket/Display.html?id=".$Ticket->id,
           description => $Ticket->Transactions->First->Content,
           dc => {
-            subject  => $Ticket->Subject,
+            subject  => ($Ticket->Subject  || loc('No subject')),
             creator  => $Ticket->CreatorObj->RealName . "<".$Ticket->CreatorObj->EmailAddress.">",
           },
         );

> 
> I've placed an example of output at http://cronfy.spb.ru/test/rss.rdf.
> Tickets 47, 49, 51, 55 have no subject, they are listed inside <items>,
> but no one of them has an <item> entry.
> 
> Is there a way to make RT to work different?
> 
> Thank you.
> 
> -- 
>  cronfy                          mailto:cronfy at ipnet.ru
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> 
> Buy your copy of our new book, RT Essentials, today! 
> 
> Download a free sample chapter from http://rtbook.bestpractical.com
> 

-- 



More information about the rt-users mailing list