Is there a way to remove the unused, pre-defined field

Moderator: crythias

Post Reply
wangpy626
Znuny newbie
Posts: 2
Joined: 19 Apr 2016, 09:56
Znuny Version: 5.0.9-01
Real Name: Neo
Company: MDY

Is there a way to remove the unused, pre-defined field

Post by wangpy626 »

Hi there

I am a new user of this OTRS system and need some advice.

I am trying to build a ticket system for my client and they would like some deep customization. For example, in a Ticket Zoom View, Assign Owner page, they would like to:

1: change the display text in the Green box into some other text.

2: to remove the File Upload and Time Unit field in the red box since they won't use it.

I tried to go to SysConfig page and there is no way to modify the pre-defined object, only can modify Dynamic Field.

Just want to know if there is a way to hard code it?

Thanks a lot.

Regards
Neo
You do not have the required permissions to view the files attached to this post.
wangpy626
Znuny newbie
Posts: 2
Joined: 19 Apr 2016, 09:56
Znuny Version: 5.0.9-01
Real Name: Neo
Company: MDY

Re: Is there a way to remove the unused, pre-defined field

Post by wangpy626 »

Anyone? Please~~~
hypex
Znuny newbie
Posts: 10
Joined: 14 Jul 2010, 08:19
Znuny Version: OTRS5

Re: Is there a way to remove the unused, pre-defined field

Post by hypex »

Im only new to OTRS so if this is someone suggest otherwise follow their lead.

You would need to modify the language file. For example my profile is set to EN_GB (English - United Kingdom)

If i go into /opt/otrs/Kernel/Language/en_GB.pm and change

Code: Select all

 $Self->{Translation} = {
	... 
	'Subject' => 'New title',
}
It changes the Subject title. I'm not sure if there is a global way in the Config.pm

Edit: please note this will change it globally not just for the AgentTicketOwner view
New to OTRS, any help given is me guessing
hypex
Znuny newbie
Posts: 10
Joined: 14 Jul 2010, 08:19
Znuny Version: OTRS5

Re: Is there a way to remove the unused, pre-defined field

Post by hypex »

As for the removing the Attachment and Time Units you could always just hide it

Modify /opt/otrs/Kernel/Output/HTML/Templates/Standard/AgentTicketOwner.tt

Code: Select all

#example for hiding attachment
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
        $("label:contains('Attachment')").hide();
        $('#FileUpload').closest('.Field').hide();
//]]></script>
[% END %]
#end example
[% InsertTemplate("AgentTicketActionCommon.tt") %]

If you wanted to actually remove it from rendering you would need to look at /opt/otrs/Kernel/Output/HTML/Templates/Standard/AgentTicketActionCommon.tt and add an IF statement not to render the snippet based on page.

Again im new to OTRS and this might not be the right process.
New to OTRS, any help given is me guessing
Post Reply