In Note: udpate to Type or Owner changes State automatically

Moderator: crythias

Locked
jemmerich
Znuny newbie
Posts: 7
Joined: 25 Jul 2012, 15:19
Znuny Version: 3.1.7

In Note: udpate to Type or Owner changes State automatically

Post by jemmerich »

Hello!

I have following issue:

- a new note is added
- there is no new default state (as I set in the SysConfig)
- if now an update is made to either the ticket Type or a new Owner one can see a short refresh (a small animation next to these fields) and the ticket State changes for the first available one in the list
- text in the Note itself or updates to Dynamic Fiesl does not have this effect.

Any ideas how to prevent this?

Cheers!

Joerg
Last edited by jemmerich on 14 Aug 2012, 17:01, edited 1 time in total.
jemmerich
Znuny newbie
Posts: 7
Joined: 25 Jul 2012, 15:19
Znuny Version: 3.1.7

Re: In Note: upate to Type or Owner changes State automatica

Post by jemmerich »

Shrort update/correction

It happens with Dynamic Fields as well. Seems to be driven by the field type, i.e. if it is a change to a drop-down or multiselect field type.
rb0206
Znuny newbie
Posts: 8
Joined: 05 Oct 2012, 16:37
Znuny Version: 3.0.7

Re: In Note: udpate to Type or Owner changes State automatic

Post by rb0206 »

I have got the same problem. Even if i change the ticket-typ field in Free Text Area, the Ticket-Status is changed to. It is set automatically to the first status in status field.

Can anyone help me!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: In Note: udpate to Type or Owner changes State automatic

Post by crythias »

I understand what you encounter you don't like, but what is the problem?

What is it doing that is incorrect?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rb0206
Znuny newbie
Posts: 8
Joined: 05 Oct 2012, 16:37
Znuny Version: 3.0.7

Re: In Note: udpate to Type or Owner changes State automatic

Post by rb0206 »

Hallo,

thanks for your reply. The problem is, that ich only want to change the Ticket-Typ but if I do that, the listbox of Ticket-Status reload and switch from '-' to the first entry. So i have to change the Status after changing the Typ. If i forgot that, the ticket got the wrong status.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: In Note: udpate to Type or Owner changes State automatic

Post by crythias »

What screen?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rb0206
Znuny newbie
Posts: 8
Joined: 05 Oct 2012, 16:37
Znuny Version: 3.0.7

Re: In Note: udpate to Type or Owner changes State automatic

Post by rb0206 »

Frontend::Agent::Ticket::ViewFreeText
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: In Note: udpate to Type or Owner changes State automatic

Post by crythias »

What version of OTRS?

You can manipulate the dtl to not update ticket type (remove the options from the dtl) or you can perhaps remove the ticket type from that screen via sysconfig.)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rb0206
Znuny newbie
Posts: 8
Joined: 05 Oct 2012, 16:37
Znuny Version: 3.0.7

Re: In Note: udpate to Type or Owner changes State automatic

Post by rb0206 »

We use OTRS 3.1.7. I need the Ticket-Typ and the Tickat-Staus in that Screen. What should ich change or remove in the dtl-file?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: In Note: udpate to Type or Owner changes State automatic

Post by crythias »

rb0206 wrote:What should ich change or remove in the dtl-file?
Interfaces such as AgentTicketFreeText use AgentTicketCommon.dtl.

In AgentTicketCommon.dtl, every field that has dependent fields (check ACL on change, for instance) has a javascript bind to change, such as:

Code: Select all

110	<script type="text/javascript">//<![CDATA[
111	    $('#ServiceID').bind('change', function (Event) {
112	        Core.AJAX.FormUpdate($('#Compose'), 'AJAXUpdate', 'ServiceID', [ 'TypeID', 'SLAID', 'NewOwnerID', 'OldOwnerID', 'NewResponsibleID', 'NewStateID', 'NewPriorityID', $Data{"DynamicFieldNamesStrg"} ]);
113	    });
114	//]]></script>
What it means, in this specific instance, is that when ServiceID is changed, TypeID -- and SLAID, NewOwnerID, etc -- are also updated and checked against, for instance, ACL and valid values are enabled.

What *THAT* means to you is that if you have a field that you'd like to change that will NOT affect TypeID, you will need to remove TypeID from that field's bind/change list. This is a global change, though. ALL forms using AgentTicketCommon will no longer update TypeID's list to a valid range when changing *that field*. If you understand this, go for it.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked