OK, so I added this to /Elements/MyRT: my $TicketObj = LoadTicket($id); my $CustomFields = $TicketObj->QueueObj->TicketCustomFields();
# Now let callbacks have a chance at editing %ARGS $m->comp('/Elements/Callback', TicketObj => $TicketObj, CustomFields => $CustomFields, ARGSRef => \%ARGS); my @results = ProcessTicketBasics(TicketObj => $TicketObj, ARGSRef => \%ARGS); my @cf_results = ProcessObjectCustomFieldUpdates(Object => $TicketObj, ARGSRef => \%ARGS); push (@results, @cf_results); Inside <%INIT></%INIT>, and this at the bottom: <%ARGS> $id => 1 </%ARGS> I'm assuming that this $id => 1 is a default value where none is specified, but either way I can't make any change to the ticket defined in the url query or even ticket #1 with: http://rt.mydom.com/rt/index.html?id=5&priority=6 I can be certain that the code is being properly applied, because if I try to set that default $id to something that dos not exist, rt throws an error. Any guidance is most appreciated/ Regards, Mike. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED] > Sent: Monday, 4 August 2008 2:23 PM > To: rt-users@lists.bestpractical.com > Subject: [rt-users] Update fields when 'refreshing' home page > > Hi all. > > How can I make the queue change when opening the home page, > > Ie, I can do this OK: > > http://rt.mydom.com/rt/Ticket/Modify.html?id=1&Object-RT::Tick > et-1-CustomFie > ld-7-Values=LB15&Object-RT::Ticket-1-CustomField-8-Values=Setup > > I want to also do this: > > http://rt.mydom.com/rt/?id=1&Object-RT::Ticket-1-CustomField-7 > -Values=LB15&O > bject-RT::Ticket-1-CustomField-8-Values=Setup > > In Modify.html, I see this: > > ----------------------------------- > my $TicketObj = LoadTicket($id); > my $CustomFields = $TicketObj->QueueObj->TicketCustomFields(); > > # Now let callbacks have a chance at editing %ARGS > $m->comp('/Elements/Callback', TicketObj => $TicketObj, > CustomFields => $CustomFields, ARGSRef => \%ARGS); > > my @results = ProcessTicketBasics(TicketObj => $TicketObj, > ARGSRef => \%ARGS); my @cf_results = > ProcessObjectCustomFieldUpdates(Object => $TicketObj, ARGSRef > => \%ARGS); push (@results, @cf_results); > ----------------------------------- > > I suppose that I can add this code to the default home > script, but where is that script? Am I on the right track here? :-} > > Any advice or suggestions most appreciated > > Thanks, regards, Mike. > > _______________________________________________ > 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 > _______________________________________________ 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