05-03-2023, 01:06 PM
I think I've solved the problem. In a ticket without notes, $item contained the priorities from the table hdz_priority. Since I had notes, previous code overwrote $item with the content of the custom_vars of the ticket. The usage of $item in the entire <div> Block pertaining to the notes is incorrect. There are 3 references to $item in lines 205, 207 and 219. If you change these to $note, it works properly!
Hope you can update this in your code repository
Hope you can update this in your code repository