fix: rétablir la création des portées
This commit is contained in:
parent
b8abaa8440
commit
2029849f18
14 changed files with 35 additions and 21 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue