Disable Reply button for Company tickets.

Moderator: crythias

Locked
artjoms15
Znuny advanced
Posts: 121
Joined: 30 Aug 2011, 10:48
Znuny Version: 3.3.8 && 4.0.9
Real Name: Artjoms Petrovs
Location: Latvia

Disable Reply button for Company tickets.

Post by artjoms15 »

Hello Everyone!

We've got implemented Company ticket functionality in customer frontend and lately got such an issue - Customers instead of creating their own tickets find tickets with similar content and add their comments, setting new state as "Open". Well I found following solutions:
1) On Reply create new ticket instead of reopening one (not suitable)
2) Disable Reply button at all (not suitable)
3) Remove state "Open" via ACL (if I manage to write IF condition to compare Ticket['CustomerUser'] with ENV['CustomerUser'] it might even work, of course with minor programming in CustomerTicketZoom.dtl

The Question - did anyone managed to implement such functionality? If yes, then how?

Best Wishes,
Artjoms
Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
artjoms15
Znuny advanced
Posts: 121
Joined: 30 Aug 2011, 10:48
Znuny Version: 3.3.8 && 4.0.9
Real Name: Artjoms Petrovs
Location: Latvia

Re: Disable Reply button for Company tickets.

Post by artjoms15 »

To be more precisely, that IF condition should be in /js/Core.Customer.TicketZoom.js and should compare Core.Customer with ticket' s value, so the question is - how in JavaScript retrieve ticket CustomerUser? :D
Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
Locked