Page 1 of 1
KB article suggstion breaks with more than 255 characters
Posted: Sat Jan 16, 2010 5:00 pm
by shifuimam
The KB feature that suggests articles relating to a submitted ticket is using GET rather than POST, which is causing a ticket submission to break if the content of the ticket contains more than 255 characters.
Disabling the KB allows submitting a ticket of any length.
Posted: Sun Jan 17, 2010 3:07 pm
by Klemen
The variable length limit is a server-side limit and Hesk by default caps the variable at about 1900 chars length which works on most servers and is within the limits of modern browser max query string.
Try opening the hesk_javascript.js file in Notepad and changing Code:
m.substr(0,1900)
to:
m.substr(0,250)
That should limit the variable to max 250 chars. Save changes, upload to the server, clear browser cache, close all browser windows then see if you can reproduce the error.
But yes, I am aware of the problems and limitations (was posted here too before). The next version should have the knowledgebase suggest solved with either a post to the next page or an ajax solution.