[rt-users] Setting dates with Callbacks
Anders Ekstrand
anders.ekstrand at drutt.com
Tue Aug 9 19:24:05 EDT 2005
Hi all,
I've followed the instructions on the Wiki to include the possibility to
edit the Custom Fields in replies and comments, and this worked great.
Thanks!
But after that I tried to also include Dates (without any real knowledge
about what I'm doing):
----- BeforeMessageBox -----
<%INIT>
my $TicketObj = LoadTicket($ARGS{'id'});
</%INIT>
<& /Ticket/Elements/EditCustomFields, TicketObj => $TicketObj &>
<& /Ticket/Elements/EditDates, TicketObj => $TicketObj &>
----------------------------
----- BeforeDisplay -----
<%INIT>
my $ARGSRef = $ARGS{'ARGSRef'};
my $TicketObj = LoadTicket($ARGS{'id'});
if (!$TicketObj) {
$TicketObj = RT::Ticket->new($session{'CurrentUser'});
$TicketObj = LoadTicket($ARGS{'id'});
}
my @cf_results = ProcessTicketCustomFieldUpdates(ARGSRef => $ARGSRef);
my @dresults = ProcessTicketDates(TicketObj => $TicketObj, ARGSRef =>
$ARGSRef);
</%INIT>
-------------------------
What am I doing wrong?
Best Regards - Anders Ekstrand
More information about the rt-users
mailing list