Re: [rt-users] how to make queue Admin Ccs visible in People section of ticket display?

2008-10-10 Thread Jerrad Pierce
Attached is a patch for displaying this information with the ticket.
I find it more useful to show this here, as a of recipients reminder for users.
-- 
Cambridge Energy Alliance: Save money  the planet
--- share/html/Ticket/Elements/ShowPeople   2008-08-30 19:22:14.0 -0400
+++ local/html/Ticket/Elements/ShowPeople   2008-10-10 18:55:00.0 -0400
@@ -56,13 +56,26 @@
   /tr
   tr
 td class=labeltop|/lCc/:/td
-td class=value ShowGroupMembers, Group = $Ticket-Cc, Ticket = $Ticket /td
+td class=value ShowGroupMembers, Group = $Ticket-Cc, Ticket = $Ticket 
+% while (my $watcher=$ccMembers-Next) {
+Q: a href=%RT-Config-Get('WebPath')%/Admin/Users/Modify.html?id=%$watcher-MemberObj-ObjectId%%$watcher-MemberObj-Object-Name%/abr/
+% }
+/td
   /tr
   tr
 td class=labeltop|/lAdminCc/:/td
-td class=value ShowGroupMembers, Group = $Ticket-AdminCc, Ticket = $Ticket /td
+td class=value ShowGroupMembers, Group = $Ticket-AdminCc, Ticket = $Ticket 
+% while (my $watcher=$AccMembers-Next) {
+Q: a href=%RT-Config-Get('WebPath')%/Admin/Users/Modify.html?id=%$watcher-MemberObj-ObjectId%%$watcher-MemberObj-Object-Name%/abr/
+% }
+/td
   /tr
 /table
+%INIT
+ #Queue   #Watch
+my $ccMembers  = $Ticket-QueueObj-Cc-MembersObj;
+my $AccMembers = $Ticket-QueueObj-AdminCc-MembersObj;
+/%INIT
 %ARGS
 $Ticket = undef
 /%ARGS___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] how to make queue Admin Ccs visible in People section of ticket display?

2008-09-18 Thread Dorothea Muecke-Herzberg
To my answer my own question:

I forgot to pass QueueObj as an argument to EditPeople in the calling
web page ModifyAll.html.

Doro

2008/9/15 Dorothea Muecke-Herzberg [EMAIL PROTECTED]:
 Hi there,

 We noticed that only the Admin Cc (and Cc for that matter) that are
 manually added to a ticket
 are listed in the People section.
 We would like to be able to see the Admin Cc configured for each queue
 in the People section
 of the ticket display and EditPeople.html as well, so that users don't
 add duplicate AdminCcs.

 I tried just to copy those two lines from Admin/Queues/People.html

 |/lAdministrative Cc/:
  /Admin/Elements/EditQueueWatchers, QueueObj = $QueueObj, Watchers
 = $QueueObj-AdminCc 

 into EditPeople.html. But after restarting apache it complained about
 QueueObj not being defined.

 Can somebody give me a hint how to get this to work?

 Thank you
 Doro

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com