How to disable attachment upload and delete functionality

Moderator: crythias

Locked
GMunjal
Znuny advanced
Posts: 108
Joined: 23 Oct 2013, 09:17
Znuny Version: 3.3.0 beta 2
Real Name: Gaurav Munjal
Company: Nagarro

How to disable attachment upload and delete functionality

Post by GMunjal »

Hi,

I want to disable attachment upload and delete functionality when customer clicks on the 'reply' button in CustomerTicketZoom. Please help me!

Thanks & Regards,
Gaurav
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to disable attachment upload and delete functionalit

Post by reneeb »

Delete the complete div with the id "AttachmentHolder" in Kernel/Output/HTML/Standard/CustomerTicketZoom.pm (https://github.com/OTRS/otrs/blob/rel-3 ... m.dtl#L260 up to line 292)
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
GMunjal
Znuny advanced
Posts: 108
Joined: 23 Oct 2013, 09:17
Znuny Version: 3.3.0 beta 2
Real Name: Gaurav Munjal
Company: Nagarro

Re: How to disable attachment upload and delete functionalit

Post by GMunjal »

thanks for the reply. :)
Can I also do this for a specific ticket type "ABC"?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to disable attachment upload and delete functionalit

Post by reneeb »

Then you have to develop some javascript code...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked