Force time units in "Notes"

Moderator: crythias

Locked
jlamarche
Znuny newbie
Posts: 43
Joined: 22 Nov 2013, 11:01
Znuny Version: 5.0.12
Real Name: Jordan Lamarche
Company: Smarthys

Force time units in "Notes"

Post by jlamarche »

Hello,

I would like to force my users to enter the "Time units" cell only in "notes" windows.
I checked under SysConfig > Ticket > ViewNote, but havn't found anything.

Is it possible ?

Best regards,

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

Re: Force time units in "Notes"

Post by root »

Yes, with custom development
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 ?
jlamarche
Znuny newbie
Posts: 43
Joined: 22 Nov 2013, 11:01
Znuny Version: 5.0.12
Real Name: Jordan Lamarche
Company: Smarthys

Re: Force time units in "Notes"

Post by jlamarche »

Hello,

Thank you for your fast answer.
As far as I know, I think it should be somewhere inside the .pm file that manages the notes, and it should be under /Kernel/Output/HTML.

Can you confirm this ? I tried to find it but couldn't. Do you, by any chance, know what file I should modify ?

Best regards,
Jordan
root
Administrator
Posts: 4246
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Force time units in "Notes"

Post by root »

I would go with an PreApplicationModule and the enable or disable Ticket::Frontend::AccountTime or Ticket::Frontend::NeedAccountedTime depending if the current Action. The mentiond notes screen is the action AgentTicketNote.
Maybe you'll find some example within the search function of the forum.
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 ?
jlamarche
Znuny newbie
Posts: 43
Joined: 22 Nov 2013, 11:01
Znuny Version: 5.0.12
Real Name: Jordan Lamarche
Company: Smarthys

Re: Force time units in "Notes"

Post by jlamarche »

I figured that it would be easier to do this :
1. Follow this guide to make every "Time units" mandatory
viewtopic.php?t=17915

2. Hide Time Units from ViewPending and ViewOwner on SysConfig > Ticket.

But unfortunately I didn't find how to do what I want to do on the point 2. There is apparently the possibility to remove the article creation to prevent the "Time units" field from appearing, but that would be a shame not to be able to give more details on the ticket.
Do you know how to do this ?

Best regards,
JL
Locked