Open themerekat opened 1 week ago
After further research, @NikitaSalikov and I determined that the checkbox is working properly for species. However, we found a new bug that it doesn't work for genera: if you search WITH synonyms, the total out is less than the total count then when you search WITHOUT synonyms!
What made us think that the synonyms checkbox wasn't working at all was that we were getting results for both Mimulus guttatus and Erythranthe guttata when we were doing a search for Mimulus guttatus in CCH2. However, the real problem was that:
If tidInterpreted of the newly-appointed determination does not exist, the new tidInterpreted should be NULL.
Hold out on fixing this one right now. These searches are more complicated than initially apparent and will require some discussion, and compromises.
Synonyms (i.e., names that don't match the exact name being searched, but are linked to one another in the taxonomic thesaurus) are returned regardless of whether the checkbox is checked.
It seems that the problem might be that the unchecking is not being passed to the cookies (or whatever the terminology is), because when you go back to Search Criteria, the box is automatically checked, no matter if you checked it before or not.
Happening in CCH2, which is currently on 3.1.4