parent
a21f3f2bb4
commit
e7176b6371
17 changed files with 189 additions and 25 deletions
|
|
@ -617,6 +617,15 @@ trait AnimalRecordActions
|
|||
|
||||
$fiv = $fiv ?? (int) ($old['fiv'] ?? 0);
|
||||
$felv = $felv ?? (int) ($old['felv'] ?? 0);
|
||||
if ($refugeRoom !== null && !ShelterRoomService::accepts($availableRooms[$refugeRoom], [
|
||||
'species' => $species,
|
||||
'sex' => $sex,
|
||||
'fiv' => $fiv,
|
||||
])) {
|
||||
http_response_code(400);
|
||||
echo h(t('rooms.animal_not_allowed'));
|
||||
return;
|
||||
}
|
||||
$careBox = in_array($status, ['soin', 'quarantaine'], true) ? $old['care_box_key'] ?? null : null;
|
||||
if ($isArchivedCorrection) {
|
||||
$refugeRoom = $old['refuge_room'] ?? null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue