
Hi Martin, the diff for the TicketFreeTimeXOlderNow $Id: Ticket.pm,v 1.338 2008/08/03 15:26:35 martin Exp 3812a3818,3822
# get tickets with freetime older then now if ( $Param{'TicketFreeTime'.$_.'OlderNow'} ) { $SQLExt .= " AND st.freetime$_ <= Now()"; }
4042c4052,4054 < $Param{TicketPendingTimeOlderDate} = $Time; ---
$Param{TicketPendingTimeOlderDate} = $Self->{TimeObject}->SystemTime2TimeStamp( SystemTime => $Time, );
4049c4061,4063 < $Param{TicketPendingTimeNewerDate} = $Time; ---
$Param{TicketPendingTimeNewerDate} = $Self->{TimeObject}->SystemTime2TimeStamp( SystemTime => $Time, );
I have made some other extensions like a timestamp parameter in SetFreeTime and a limit in getHistory. see attached file Regards Christian
-----Ursprüngliche Nachricht----- Von: "Martin Edenhofer"
Gesendet: 02.09.08 16:29:31 An: "Development community of OTRS.org" Betreff: Re: [dev] Ticket.pm enhancement
Hi Christian,
On Sep 1, 2008, at 15:42 , ch po wrote:
how can I add some features to the sources of the living version of otrs? In this particular case I have extended Kernel/System/Ticket.pm to include a parameter OldState on the call to TicketEventHandlerPost because I have seen no other easy way to handle different actions on the same new state but different old states. Also I have added a TicketFreeTime<X>OlderNow To TicketSearch so I have not to first build the string-date for the actual time in generic agent if I want to have FreeTime as timer.
Sounds interesting! ;)
a) TicketEventHandlerPost & additional option attributes -=> Currently it's not done at all to give dedicated params based on event to TicketEventHandlerPost() to keep a clear (always the same) API. So at the current state I would not say that it's a good choose to do so.
b) TicketFreeTime<X>OlderNow sounds good, can you post it on the list?
Greetings,
-Martin
-- ((otrs)) :: OTRS AG :: Europaring 4 :: D - 94315 Straubing Fon: +49 (0) 9421 56818 0 :: Fax: +49 (0) 9421 56818 18 http://www.otrs.com/ :: Communication with success!
Address of record: Bad Homburg Local Court: Bad Homburg, HRB 10751 Tax number: 003/240/97505
Chairman: Burchard Steinbild Chief Executive Officer: André Mindermann
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_________________________________________________________________________ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114