BUG-15503 Advanced Search: Cuando un caso es completado... SOLVED

- Cases with the completed status were not considered.
- A validation was added in criteria in file AppCacheView.php function getAllCases2