Skip to content

Commit

Permalink
Fix media advanced search when not using mimetype
Browse files Browse the repository at this point in the history
(fix #1518)

(cherry picked from commit c16d89c)
  • Loading branch information
zerocrates committed Mar 25, 2020
1 parent 0d29416 commit 5e14e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Api/Adapter/MediaAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function buildQuery(QueryBuilder $qb, array $query)
));
}

if (isset($query['media_type'])) {
if (!empty($query['media_type'])) {
$qb->andWhere($qb->expr()->eq(
'omeka_root.mediaType',
$this->createNamedParameter($qb, $query['media_type'])
Expand Down

0 comments on commit 5e14e55

Please sign in to comment.