Hi guys!

I've managed, to play a little bit with the RSS-feed generation at 
/html/Search/Elements/ResultsRSSView

But at the moment I'm stuck at fetching the latest transaction with type 
"Correspond" or "Comment" from the database for displaying the right 
content.
Is anybody out there who could help me with this?

My current code looks like:

while ( my $Ticket = $Tickets->Next()) {
        my $transactions = RT::Transactions->new($session{CurrentUser});
        $transactions->LimitToTicket($Ticket->id);
 
        # Limit to transactions with type "Comment"
        $transactions->Limit(
                FIELD => 'Type',
                VALUE => 'Comment'
        ); 
 
        my $content = $transactions->Last->Content;

...


I get the following error in the logs:
 Can't call method "Content" on an undefined value at 
/opt/rt4-devel/local/html/Search/Elements/ResultsRSSView


I don't know actually, why the variable $transactions has an undefined 
value.


Greetings,
Markus

Reply via email to