BUG 10620 setCaseTrackerCode function does not work SOLVED

- Incorrect condition in update logic
- Fix incorrect condition