Adding temporally (for one ticket) some watchers

Hi Teo,

in
http://lists.fsck.com/pipermail/rt-users/2001-October/005010.html
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

Danny

error in file: /usr/lib/perl5/site_perl/5.6.1/DBIx/SearchBuilder/Handle.pm
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);
354:
355: return ($sth->fetchrow);
356: }
357: # }}}
358:
359: # {{{ BinarySafeBLOBs

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

code stack: /usr/lib/perl5/site_perl/5.6.1/DBIx/SearchBuilder/Handle.pm:355
/opt/rt2/lib/RT/User.pm:1037
/opt/rt2/lib/RT/User.pm:718
/opt/rt2/lib/RT/Ticket.pm:2415
/opt/rt2/lib/RT/Interface/Web.pm:791
/opt/rt2/WebRT/data/obj/STANDARD/Ticket/Display.html:142
/opt/rt2/WebRT/data/obj/STANDARD/autohandler:69

-------------------- cut ---------------------------------------------------
----- http://lists.fsck.com/pipermail/rt-users/2001-October/005010.html ----

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
62,64d61
< <& /Elements/TitleBoxEnd &>
< <& /Elements/TitleBoxStart, title => ‘People’,width => “100%”, color=>
#333399” &>
< <& Elements/EditPeople, Ticket => $Ticket, UserField => $UserField,
UserString => $UserString, UserOp => $UserOp &>
67d63
<
114,116d109
< $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
133,135d132
< my @wresults = ProcessTicketWatchers( TicketObj => $Ticket, ARGSRef =>
%ARGS);
< 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
addresses.

DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart
Tel: +49-711-849910-32 Fax: +49-711-849910-932
WEB: http://www.dtnet.de/ email: schwager@dtnet.de