Adding temporally (for one ticket) some watchers

Hi Teo,

you sent a patch for adding Watchers (CC/Requestor/AdminCC) temporally
for one Comment/Correspondence.
I try to implement this patch, but i get the following error-message.
Do you know, what’s going wrong ? (RT Version 2-0-11)

Merci for you help


error in file: /usr/lib/perl5/site_perl/5.6.1/DBIx/SearchBuilder/
line 355: Can’t call method “fetchrow” on an undefined value

context: …
351: my $query = shift;
352: my @bind_values = @_;
353: my $sth = $self->SimpleQuery($query, @bind_values);
355: return ($sth->fetchrow);
356: }
357: # }}}
359: # {{{ BinarySafeBLOBs

component stack: /Ticket/Display.html [standard]
/autohandler [standard]

code stack: /usr/lib/perl5/site_perl/5.6.1/DBIx/SearchBuilder/

-------------------- cut ---------------------------------------------------
----- ----

Does anybody know of a shortcut around setting up a one-time use CC or
is this something that I’ll have to ask for in a future version? As I’m
new to the structure of RT2, if I were to do this myself, where should I
look to be able to modify both the GUI and the beavior of the mailer?

We have one group who does a lot of this - we basically did this:

Copy WebRT/Ticket/Update.html and Display.html to the local directory,
then add the Element ‘EditPeople’ into the html code of your ‘local’ copy:

$ diff Update.html /usr/local/rt2/WebRT/html/Ticket/Update.html
< <& /Elements/TitleBoxEnd &>
< <& /Elements/TitleBoxStart, title => ‘People’,width => “100%”, color=>
"#333399" &>
< <& Elements/EditPeople, Ticket => $Ticket, UserField => $UserField,
UserString => $UserString, UserOp => $UserOp &>
< $UserField => undef
< $UserOp => undef
< $UserString => undef

Then, add the update logic into the INIT section of the Display.html:

$ diff Display.html /usr/local/rt2/WebRT/html/Ticket/Display.html
< my @wresults = ProcessTicketWatchers( TicketObj => $Ticket, ARGSRef =>
< push @Actions, @wresults;

We further customised our Ticket/Elements/EditPeople page, so that in
addition to two text input forms, we also have a Select for commonly used

DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart
Tel: +49-711-849910-32 Fax: +49-711-849910-932
WEB: email: