I think I have found a bug in FIND() when creating a standard calculated attribute in Explore.
I have two tickets where one has a tag "cat_laptop" and the other has a tag "cat_software_ms-office_2019". These tags are used to categorize tickets.
I now want to create a report that shows all primary categories (the text after the first _ and before the second _)
I create a new standard calculated attribute with this code:
cat_laptop -1 -1 -1
cat_software_office_2019 12 19 -1
cat_laptop 3 3 3
cat_software_office_2019 12 19 19
To me it appears that the FIND() function is missing the check that if the returned value is equal to or lower than the start index then it should return -1. In stead it returns the latest instance of the character and ignores the start index.
I guess I could make a check myself, but that would defeat the entire purpose of the start index.
(Also I hope this is the right place to file bug reports. I couldn't find a better category.)
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.