Closed JimBacon closed 1 year ago
Looks to me like a copy-paste error from the preceding line here. It doesn't make sense to be comparing the new taxa_taxon_list_id with the existing metadata value. $identChanging will (virtually) always be true
$identChanging
https://github.com/Indicia-Team/warehouse/blob/61f4cb321faf25b10b227fbdefa22bb5d46bc49e/application/models/occurrence.php#L136
When we reach the following conditions, if we update a verified occurrence with no changes (such as can happen when re-importing records from csv file) wantToUpdateMetaData, $isAlreadyReviewed and $identChanging will all be true, causing the verification to be reset when it should not be. https://github.com/Indicia-Team/warehouse/blob/61f4cb321faf25b10b227fbdefa22bb5d46bc49e/application/models/occurrence.php#L152-L157
wantToUpdateMetaData
$isAlreadyReviewed
Good spot @JimBacon. Will you push a hotfix?
Looks to me like a copy-paste error from the preceding line here. It doesn't make sense to be comparing the new taxa_taxon_list_id with the existing metadata value.
$identChanging
will (virtually) always be truehttps://github.com/Indicia-Team/warehouse/blob/61f4cb321faf25b10b227fbdefa22bb5d46bc49e/application/models/occurrence.php#L136
When we reach the following conditions, if we update a verified occurrence with no changes (such as can happen when re-importing records from csv file)
wantToUpdateMetaData
,$isAlreadyReviewed
and$identChanging
will all be true, causing the verification to be reset when it should not be. https://github.com/Indicia-Team/warehouse/blob/61f4cb321faf25b10b227fbdefa22bb5d46bc49e/application/models/occurrence.php#L152-L157