Verification metadata inadvertantly updated
Closed this issue · 2 comments
JimBacon commented
In the warehouse user interface, edit an occurrence that has been verified. Without making any changes, click the save button.
The verifer and time of verification will be changed to the current user and current time.
JimBacon commented
This is caused by the line
warehouse/application/models/occurrence.php
Line 139 in 7033486
where
$newSubstatus
is a string value while$this->record_substatus
is an integer so they are never exactly equal.JimBacon commented
In general, $newSubstatus
can be null, int or string while $this->record_substatus
can be null or int. To avoid errors, we should convert to string on both sides of the comparison.