feat: enrichir l'édition du site public

This commit is contained in:
Alexandre NOEL 2026-09-07 15:52:16 +02:00
commit 1df26401a3
17 changed files with 115 additions and 15 deletions

View file

@ -47,7 +47,10 @@ trait AnimalBrowseActions
];
$orderBy = $allowed[$sort] ?? 'a.updated_at';
$where = ['a.deleted_at IS NULL', 'a.archived_at IS NULL'];
$where = ['a.deleted_at IS NULL'];
if ($status !== '') {
$where[] = 'a.archived_at IS NULL';
}
$params = [];
if (in_array($availability, ['available', 'not_available', 'unknown'], true)) {
$where[] = 'a.adoption_availability=:availability';