Ticket refresh after adding attachment
Moderator: crythias
Ticket refresh after adding attachment
Hello,
Is there someone with the same problem?
When customers fill in their ticket and add an attachment, the browser refreshes and clears the fields of title and ticket body text..
Is there someone with the same problem?
When customers fill in their ticket and add an attachment, the browser refreshes and clears the fields of title and ticket body text..
OTRS 3.2 - Windows Server 2008R2 - mysql
Re: Ticket refresh after adding attachment
have you tried using a different browser?
Re: Ticket refresh after adding attachment
The problem occurs in Chrome, Firefox and Internet Explorer
OTRS 3.2 - Windows Server 2008R2 - mysql
Re: Ticket refresh after adding attachment
At the e-mail and telephone ticket?
have you changed anything in the sysconfig or is it always like that?
have you changed anything in the sysconfig or is it always like that?
Re: Ticket refresh after adding attachment
It's only in the customer frontend.
I did add some Javascript to CustomerTicketMessage.dtl to hide a dynamicField when a certian queue is selected.
I did add some Javascript to CustomerTicketMessage.dtl to hide a dynamicField when a certian queue is selected.
OTRS 3.2 - Windows Server 2008R2 - mysql
Re: Ticket refresh after adding attachment
I think that could be the problem ...
Re: Ticket refresh after adding attachment
Hi SantaPe,
For hiding the dynamic field you should add the proper ACL configuration in config.pm. Try to restore you previous configuration and take a look at the admin manual, you will find configuration samples of how to use ACL to restrict the fields you want using "Display" variable.
Hope this help.
For hiding the dynamic field you should add the proper ACL configuration in config.pm. Try to restore you previous configuration and take a look at the admin manual, you will find configuration samples of how to use ACL to restrict the fields you want using "Display" variable.
Hope this help.
OTRS 5.0.9, , ITSM 5.0.9, MySQL, Ubuntu 14.04, Apache2
Re: Ticket refresh after adding attachment
i don't think there is a 'display' variable.
It seems I can only use ACL to determine how my dynamicField is filled (in this case a dropdownlist); but I can work with this solution as well.
For example, when support queue is chose only the category Hardware is shown in the dropdownlist:
Only... it doesn't work.

It seems I can only use ACL to determine how my dynamicField is filled (in this case a dropdownlist); but I can work with this solution as well.
For example, when support queue is chose only the category Hardware is shown in the dropdownlist:
Code: Select all
# ticket acl
#$Self->{TicketAcl}->{'categorieACL'} = {
# # match properties
# Properties => {
# current ticket match properties
# Ticket => {
# Queue => ['IT::SUPPORT'],
# }
#},
# return possible options (white list)
#Possible => {
# possible ticket options (white list)
# Ticket => {
# DynamicField_itSupportCat1 => ['Hardware'],
#},
#},
#};


OTRS 3.2 - Windows Server 2008R2 - mysql
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Ticket refresh after adding attachment
what you posted is completely commented.
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
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
Re: Ticket refresh after adding attachment



I know crytias... Good one :]
Even when the comment tags are gone, the code doesn't work.
OTRS 3.2 - Windows Server 2008R2 - mysql
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Ticket refresh after adding attachment
SantaPe wrote:When customers fill in their ticket and add an attachment, the browser refreshes and clears the fields of title and ticket body text..
This shouldn't have affected the body unless the JavaScript affects the body.SantaPe wrote:I did add some Javascript to CustomerTicketMessage.dtl to hide a dynamicField when a certian queue is selected.
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
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
Re: Ticket refresh after adding attachment
The refresh problem is caused by the javaScript. I would like to get rid of the javaScript actually and use the ACL's instead.
I'm only having trouble with choosing the options in the dropdownlist of that dynamicField.
I'm only having trouble with choosing the options in the dropdownlist of that dynamicField.
OTRS 3.2 - Windows Server 2008R2 - mysql
Re: Ticket refresh after adding attachment
I still haven't succeeded in using ACL's.
Last night I tried the following:
And it did not work. If I changed the restrict the priority to two options, it worked. But it only worked once. Afterwards I tried it with the dynamicField and when that failed I put back the code of the priority and it didn't work anymore.
After I change settings in the Config.pm file do I need to restart OTRS? Do I have to wait a while? Are changes immediately effective?
Also, I was inspecting the examples on the documentation site: http://doc.otrs.org/3.2/en/html/customization.html
And I noticed the comma's aren't used consequently.. I don't know if it's a syntax error or not. Check the first example. Where do I need to use the comma's?
Last night I tried the following:
Code: Select all
$Self->{TicketAcl}->{'ACL-cat'} = {
Properties => {
Ticket => {
Queue => ['Support'],
}
},
Possible => {
Ticket => {
DynamicField_SupportCat1 => ['hardware','software','password reset','printer','information'],
},
},
};
After I change settings in the Config.pm file do I need to restart OTRS? Do I have to wait a while? Are changes immediately effective?
Also, I was inspecting the examples on the documentation site: http://doc.otrs.org/3.2/en/html/customization.html
And I noticed the comma's aren't used consequently.. I don't know if it's a syntax error or not. Check the first example. Where do I need to use the comma's?
OTRS 3.2 - Windows Server 2008R2 - mysql