Problem with changing default PendingDiffTime

Moderator: crythias

Post Reply
zabor
Znuny newbie
Posts: 2
Joined: 26 Mar 2012, 20:41
Znuny Version: 3.0.5

Problem with changing default PendingDiffTime

Post by zabor »

Hello,

I would change default Ticket::Frontend::PendingDiffTime from 86400 (1 day) to 1209600 (14 days).
First problem was that, the PendingDiffTime field accept only 6digits, so I made changes in /opt/otrs/Kernel/Config/Files/Ticket.xml
I've change regex syntax from

Code: Select all

<String Regex="^[0-9]{1,6}$">86400</String>
to

Code: Select all

<String Regex="^[0-9]{1,7}$">86400</String>
, and then one again put 1209600 into PendingDiffTime field and approve changes.

But the problem is with auto filling callendar while I would like to set pending state.
Before I've made changes, one day was always add to the callendar, but now is automatically set to the present day. pls help me with that :)

If sth is not clear, pls do not hestiate to contact with me :)

p.s. Pls forgive me any typos....

Regards,
zabor
micshi
Znuny expert
Posts: 191
Joined: 05 Jul 2011, 16:10
Znuny Version: 3.2.2
Real Name: Micshi
Location: Beijing
Contact:

Re: Problem with changing default PendingDiffTime

Post by micshi »

you should read source code of ticket compose action.
OTRS 3.2.2, ITSM 3.2.2, SystemMonitor
Ubuntu, Apache2, MySQL 5
My OTRS Blog
OTRS Basic Concept Training
OTRS Demo Instance
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problem with changing default PendingDiffTime

Post by jojo »

Hi, you should change the xml files as the will and need to be ovewritten by an update.

You can change the time in the sysconfig
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zabor
Znuny newbie
Posts: 2
Joined: 26 Mar 2012, 20:41
Znuny Version: 3.0.5

Re: Problem with changing default PendingDiffTime

Post by zabor »

micshi wrote:you should read source code of ticket compose action.
Thx for advice micshi but which file did you mean, is it: /opt/otrs/Kernel/Modules/AgentTicketCompose.pm ?

----
jojo wrote:Hi, you should change the xml files as the will and need to be ovewritten by an update.
You can change the time in the sysconfig
I've changed /opt/otrs/Kernel/Config/Files/Ticket.xml and set time to 1209600 in sysconfig (Ticket::Frontend::PendingDiffTime).
But you said xml files, is there something else then Ticket.xml to change?
Regards,
zabor
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problem with changing default PendingDiffTime

Post by jojo »

Sorry I forgot a word:

Hi, you should not change the xml files as the will and need to be ovewritten by an update.



Just use sysconfig
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
traduceretehnica
Znuny newbie
Posts: 1
Joined: 04 May 2012, 09:33
Znuny Version: OTRS 3.06

Re: Problem with changing default PendingDiffTime

Post by traduceretehnica »

i still can't manage to get it work.
Post Reply