fix: fiabiliser les fiches animales et vaccinations
This commit is contained in:
parent
f45cfc40f2
commit
361bef8561
20 changed files with 157 additions and 65 deletions
|
|
@ -376,7 +376,10 @@ trait AnimalRecordActions
|
|||
}
|
||||
$identificationDate = trim((string) ($_POST['identification_date'] ?? ''));
|
||||
$identificationRegistration = (string) ($_POST['identification_registration_status'] ?? 'unknown');
|
||||
if (!in_array($identificationRegistration, ['unknown', 'pending', 'registered'], true)) {
|
||||
if ($identificationRegistration === 'pending') {
|
||||
$identificationRegistration = 'change_pending';
|
||||
}
|
||||
if (!in_array($identificationRegistration, ['unknown', 'registered', 'change_pending', 'owner_changed'], true)) {
|
||||
$identificationRegistration = 'unknown';
|
||||
}
|
||||
if ($chip_id === '') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue