DatePicker Years (i need 10 Years +)

Moderator: crythias

Post Reply
mohnewald
Znuny newbie
Posts: 10
Joined: 31 Jan 2023, 09:23
Znuny Version: 6.2.8
Real Name: Michael Liebherr

DatePicker Years (i need 10 Years +)

Post by mohnewald »

Hello,

how can i extend the years of the date picker?

I would like to have 10 years in the future.

Cheers,
Michael
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: DatePicker Years (i need 10 Years +)

Post by root »

Hi,

For which date picker do you require this? For pending dates or for dynamic fields?

- Roy


P.S.: thank you for trusting in the application and planning ahead
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
mohnewald
Znuny newbie
Posts: 10
Joined: 31 Jan 2023, 09:23
Znuny Version: 6.2.8
Real Name: Michael Liebherr

Re: DatePicker Years (i need 10 Years +)

Post by mohnewald »

For pending dates
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: DatePicker Years (i need 10 Years +)

Post by root »

Hi,

The available five years are hard-coded in multiple modules. I dare to ask why someone needs more that 5 years..

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
mohnewald
Znuny newbie
Posts: 10
Joined: 31 Jan 2023, 09:23
Znuny Version: 6.2.8
Real Name: Michael Liebherr

Re: DatePicker Years (i need 10 Years +)

Post by mohnewald »

we have Contracts which run 10 years :)

Where is it hardcoded...? i mean...it´s maybe hard-coded but not In-Stein-Gemeiselt? :)
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: DatePicker Years (i need 10 Years +)

Post by root »

Hi,

That's easy to find:

Code: Select all

[xxx@yyy ~]$ grep -Rn YearPeriodFuture Kernel/ | grep '=> 5'
Kernel/Output/HTML/Layout/CalendarBasedTicketCreation.pm:92:        YearPeriodFuture               => 5,
Kernel/Output/HTML/Preferences/OutOfOffice.pm:43:        YearPeriodFuture       => 5,
Kernel/Output/HTML/Preferences/OutOfOffice.pm:61:        YearPeriodFuture     => 5,
Kernel/Modules/AgentTicketCompose.pm:1999:        YearPeriodFuture     => 5,
Kernel/Modules/AgentTicketProcess.pm:2346:        YearPeriodFuture => 5,
Kernel/Modules/AgentTicketPhone.pm:2617:        YearPeriodFuture     => 5,
Kernel/Modules/AgentTicketForward.pm:1688:        YearPeriodFuture     => 5,
Kernel/Modules/AgentTicketMove.pm:1430:                YearPeriodFuture => 5,
Kernel/Modules/AgentTicketActionCommon.pm:2216:                    YearPeriodFuture => 5,
Kernel/Modules/AgentZnuny4OTRSSendTicketPrint.pm:2466:                    YearPeriodFuture => 5,
Kernel/Modules/AgentTicketEmail.pm:3031:        YearPeriodFuture     => 5,
Kernel/Modules/AgentTicketPhoneCommon.pm:1365:        YearPeriodFuture     => 5,
Kernel/Modules/AgentTicketEmailOutbound.pm:1808:        YearPeriodFuture     => 5,
But changing these files would be required a change with every single update.

I strongly recommend searching for another solution. Why does the ticket need to be open with a pending date?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
mohnewald
Znuny newbie
Posts: 10
Joined: 31 Jan 2023, 09:23
Znuny Version: 6.2.8
Real Name: Michael Liebherr

Re: DatePicker Years (i need 10 Years +)

Post by mohnewald »

thx
Post Reply