feat: enrichir l'édition du site public
This commit is contained in:
parent
6e3beea211
commit
1df26401a3
17 changed files with 115 additions and 15 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue