
On Friday, March 26, 2004 7:49 PM
Steven Shults
where is $Env{"PendingDateString"} defined? what file is it in? i've grepped all the files in Kernel/Output/HTML/Standard and can't find it there.
# fgrep PendingDateString Kernel/Modules/* Kernel/Modules/AgentCompose.pm: $Param{PendingDateString} = $Self->{LayoutObject}->BuildDateSelection( Kernel/Modules/AgentEmail.pm: $Param{PendingDateString} = $Self->{LayoutObject}->BuildDateSelection( Kernel/Modules/AgentPhone.pm: $Param{PendingDateString} = $Self->{LayoutObject}->BuildDateSelection( Kernel/Modules/AgentPhone.pm: $Param{PendingDateString} = $Self->{LayoutObject}->BuildDateSelection( Do yourself a favour and don't change these. Instead, read on.
i'll like to set the default PendingDateString to a week in the future instead of 24 hours in the future. how can i do that?
Brave boy, you read on ;) As usual, first try to find a solution via your Kernel/Config.pm. All possible options for Config.pm are listed in Kernel/Config/Defaults.pm. _Please_ _note:_ There is no need at all to change anything in Defaults.pm at any time, be it now or in the future. This is because the settings in Config.pm overwrite those in Config/Defaults.pm The procedure is as easy as 1-2-3: 1) Search for the option in Defaults.pm 2) Copy it to Config.pm 3) Change it there. So, the option you're searching for is: # PendingDiffTime # (Time in sec. which "pending date" shows per default) [default: 24*60*60 -=> 1d] $Self->{PendingDiffTime} = 24*60*60; This is the exact from Defaults.pm. You need: $Self->{PendingDiffTime} = 7*24*60*60; hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388