fix: rétablir la création des portées

This commit is contained in:
Alexandre NOEL 2026-09-15 18:27:40 +02:00
commit 2029849f18
14 changed files with 35 additions and 21 deletions

View file

@ -139,13 +139,6 @@ trait AnimalRelationshipActions
$baseName = trim((string) ($parents[$motherId]['name'] ?? ($parents[$fatherId]['name'] ?? 'Portée')));
$allowedSexes = ['F', 'M', 'U'];
try {
PrivateMediaService::moveVisibility($animalId, (string) $photo['filename'], $isPublic === 1);
} catch (Throwable $e) {
http_response_code(500);
echo h(t('error.upload_failed'));
return;
}
$db->beginTransaction();
try {
$stmt = $db->prepare(