Merge pull request #1269 from julceslauhub/master

BUG 9886 Duplicated cases when clicking various times in the submit button IMPROVEMENT
BUG 10620 setCaseTrackerCode function does not work SOLVED

- Incorrect condition in update logic
- Fix incorrect condition