Page 1 of 1

Content of custom (drop down) filed is getting lost when edit the ticket

Posted: Sat Feb 22, 2025 5:59 pm
by buxreptref
Script URL: https://reparaturtreff-buxtehude.de/tickets_debug/admin
Version of script: HESK 3.5.2 (same behavior with 3.4 before)
Hosting company: biohost.de
URL of phpinfo.php: https://reparaturtreff-buxtehude.de/tic ... hpinfo.php
URL of session_test.php: https://reparaturtreff-buxtehude.de/tic ... n_test.php
What terms did you try when SEARCHING for a solution:
I searched all topics related to custom fields, but I did not find anything that is realted.

Write your message below:

We added several custom fields. The issue we have is regarding a drop down field
We can see the value "Kartennummer" when selecting the Ticket. But if we click in "Edit" the value disapears and changes to "Click to select"
If we then exit the edit dialog without saving, the value is still shown correctly in the ticket view.
This happens only to very few tickets. (also new created ones) Most time the "Kartenummer" is shown correct in the edit view.
We probably have no problem for "Kartenfarbe". As the "Kartenfarbe" field does not show "Click to select" as default, it might be that it just changes to the first entry of the drop down. Which also is not expected but not easy to observe

Please see the attached screenshots for explanation.
I posted post the required scripts to the server
https://reparaturtreff-buxtehude.de/tic ... pic/ok.png
https://reparaturtreff-buxtehude.de/tic ... ic/nok.png
https://reparaturtreff-buxtehude.de/tic ... nfarbe.png
https://reparaturtreff-buxtehude.de/tic ... nummer.png

Any ideas if we are doing sth wrong?
A login to the system can be provided, in oder to live see the issue

Re: Content of custom (drop down) filed is getting lost when edit the ticket

Posted: Sat Feb 22, 2025 8:04 pm
by Klemen
This doesn't happen in any of my tests.

If you can provide admin access (via private message) and sample ticket ID where this happens, I can have a look.

Re: Content of custom (drop down) filed is getting lost when edit the ticket

Posted: Sat Feb 22, 2025 8:37 pm
by cwyenberg
I had a similar if not the same issue. This may help

viewtopic.php?p=26461#p26461

Re: Content of custom (drop down) filed is getting lost when edit the ticket

Posted: Sat Feb 22, 2025 9:31 pm
by buxreptref
@cwyenberg thanks so much for your reply, that solved the issue reproduceible.
I had a blanc at the end of two values of my drop down field.
I removed them, and had no issue anymore.

Thanks for the incredible quick answer of @cwyenberg and @Klemen.
Not sure it it would make sense to catch these kind of issue in one of the upcoming versions of hesk.

Re: Content of custom (drop down) filed is getting lost when edit the ticket

Posted: Sat Feb 22, 2025 9:54 pm
by Klemen
Glad to hear that worked.

Will see if we can automatically strip spaces in a future update.